From a845471b885edd7e02d0fd812f49bec8e02d4207 Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Thu, 23 Jun 2016 05:26:21 -0700 Subject: [PATCH] Create Payload per thread in testPutBlobParallel Fixes a regression from 45bcc3ce226ec2150e893491f2e8046780377e76. --- .../integration/internal/BaseBlobIntegrationTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/blobstore/src/test/java/org/jclouds/blobstore/integration/internal/BaseBlobIntegrationTest.java b/blobstore/src/test/java/org/jclouds/blobstore/integration/internal/BaseBlobIntegrationTest.java index 608ed4931f..c722d9b12c 100644 --- a/blobstore/src/test/java/org/jclouds/blobstore/integration/internal/BaseBlobIntegrationTest.java +++ b/blobstore/src/test/java/org/jclouds/blobstore/integration/internal/BaseBlobIntegrationTest.java @@ -119,8 +119,6 @@ public class BaseBlobIntegrationTest extends BaseBlobStoreIntegrationTest { @Test(groups = { "integration", "live" }) public void testPutBlobParallel() throws Exception { final ByteSource expected = createTestInput(32 * 1024); - final Payload testPayload = Payloads.newByteSourcePayload(expected); - testPayload.getContentMetadata().setContentType("image/png"); final String container = getContainerName(); try { @@ -131,7 +129,9 @@ public class BaseBlobIntegrationTest extends BaseBlobStoreIntegrationTest { @Override public Void call() throws Exception { - Blob blob = view.getBlobStore().blobBuilder(name).payload(testPayload).contentLength(expected.size()).build(); + Payload payload = Payloads.newByteSourcePayload(expected); + payload.getContentMetadata().setContentType("image/png"); + Blob blob = view.getBlobStore().blobBuilder(name).payload(payload).contentLength(expected.size()).build(); view.getBlobStore().putBlob(container, blob); assertConsistencyAwareBlobExists(container, name);