mirror of https://github.com/apache/jclouds.git
Merge pull request #1517 from jclouds/fix-java7-empty-put-test
Fixing S3ClientMockTest hanging on Java 7 since 843ed57
This commit is contained in:
commit
ebc574d378
|
@ -70,7 +70,9 @@ public class S3ClientMockTest {
|
|||
|
||||
public void testZeroLengthPutHasContentLengthHeader() throws IOException, InterruptedException {
|
||||
MockWebServer server = new MockWebServer();
|
||||
server.enqueue(new MockResponse().setBody("").addHeader(ETAG, "ABCDEF"));
|
||||
server.enqueue(new MockResponse().addHeader(ETAG, "ABCDEF"));
|
||||
// hangs on Java 7 without this additional response ?!?
|
||||
server.enqueue(new MockResponse().addHeader(ETAG, "ABCDEF"));
|
||||
server.play();
|
||||
|
||||
S3Client client = getS3Client(server.getUrl("/"));
|
||||
|
|
Loading…
Reference in New Issue