Correct B2 SkipException for testPutObjectStream

This commit is contained in:
Andrew Gaul 2018-12-19 03:22:16 -08:00
parent 13d1de0397
commit 294fc4b353

View File

@ -126,12 +126,7 @@ public final class B2BlobIntegrationLiveTest extends BaseBlobIntegrationTest {
@Override
public void testPutObjectStream() throws InterruptedException, IOException, ExecutionException {
try {
super.testPutObjectStream();
failBecauseExceptionWasNotThrown(IllegalArgumentException.class);
} catch (IllegalArgumentException iae) {
throw new SkipException("B2 does not support the Cache-Control header", iae);
}
throw new SkipException("B2 requires a Content-Length");
}
@Override