Ensure MPU input size meets minimum for test

This commit is contained in:
Andrew Gaul 2016-06-02 11:27:21 -07:00
parent d983d8d0a7
commit ed7ff648e8
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ public final class MultipartUploadSlicingAlgorithm {
protected Logger logger = Logger.NULL;
@VisibleForTesting
static final long DEFAULT_PART_SIZE = 33554432; // 32MB
public static final long DEFAULT_PART_SIZE = 33554432; // 32MB
@VisibleForTesting
static final int DEFAULT_MAGNITUDE_BASE = 100;

View File

@ -633,7 +633,7 @@ public class BaseBlobIntegrationTest extends BaseBlobStoreIntegrationTest {
@Test(groups = { "integration", "live" })
public void testPutMultipartByteSource() throws Exception {
long length = getMinimumMultipartBlobSize();
long length = Math.max(getMinimumMultipartBlobSize(), MultipartUploadSlicingAlgorithm.DEFAULT_PART_SIZE + 1);
BlobStore blobStore = view.getBlobStore();
MultipartUploadSlicingAlgorithm algorithm = new MultipartUploadSlicingAlgorithm(
blobStore.getMinimumMultipartPartSize(), blobStore.getMaximumMultipartPartSize(),