mirror of https://github.com/apache/jclouds.git
Ensure MPU input size meets minimum for test
This commit is contained in:
parent
d983d8d0a7
commit
ed7ff648e8
|
@ -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;
|
||||
|
|
|
@ -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(),
|
||||
|
|
Loading…
Reference in New Issue