diff options
author | buchgr <buchgr@google.com> | 2018-03-12 04:13:38 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-03-12 04:15:01 -0700 |
commit | b33e5afa313322a7048044c44d854cbb666b988e (patch) | |
tree | 94db9f57bd42b6ca8d4143304125153aeb1a3e27 /src/test/java/com/google | |
parent | 658662136e65f54f93a0c81c7fb78dd6b46b55a6 (diff) |
remote: fix flakiness of HttpBlobStoreTest on Windows.
Increase the connect timeout to 30 seconds Windows sometimes
seems to need more time.
RELNOTES: None
PiperOrigin-RevId: 188702864
Diffstat (limited to 'src/test/java/com/google')
-rw-r--r-- | src/test/java/com/google/devtools/build/lib/remote/blobstore/http/HttpBlobStoreTest.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/remote/blobstore/http/HttpBlobStoreTest.java b/src/test/java/com/google/devtools/build/lib/remote/blobstore/http/HttpBlobStoreTest.java index 7ef77edc2f..7854cb53e7 100644 --- a/src/test/java/com/google/devtools/build/lib/remote/blobstore/http/HttpBlobStoreTest.java +++ b/src/test/java/com/google/devtools/build/lib/remote/blobstore/http/HttpBlobStoreTest.java @@ -96,7 +96,7 @@ public class HttpBlobStoreTest { Credentials credentials = newCredentials(); HttpBlobStore blobStore = - new HttpBlobStore(new URI("http://localhost:" + serverPort), 5, credentials); + new HttpBlobStore(new URI("http://localhost:" + serverPort), 30, credentials); ByteArrayOutputStream out = Mockito.spy(new ByteArrayOutputStream()); blobStore.get("key", out); assertThat(out.toString(Charsets.US_ASCII.name())).isEqualTo("File Contents"); @@ -125,7 +125,7 @@ public class HttpBlobStoreTest { Credentials credentials = newCredentials(); HttpBlobStore blobStore = - new HttpBlobStore(new URI("http://localhost:" + serverPort), 5, credentials); + new HttpBlobStore(new URI("http://localhost:" + serverPort), 30, credentials); byte[] data = "File Contents".getBytes(Charsets.US_ASCII); ByteArrayInputStream in = new ByteArrayInputStream(data); blobStore.put("key", data.length, in); @@ -153,7 +153,7 @@ public class HttpBlobStoreTest { Credentials credentials = newCredentials(); HttpBlobStore blobStore = - new HttpBlobStore(new URI("http://localhost:" + serverPort), 5, credentials); + new HttpBlobStore(new URI("http://localhost:" + serverPort), 30, credentials); blobStore.get("key", new ByteArrayOutputStream()); fail("Exception expected."); } catch (Exception e) { @@ -180,7 +180,7 @@ public class HttpBlobStoreTest { Credentials credentials = newCredentials(); HttpBlobStore blobStore = - new HttpBlobStore(new URI("http://localhost:" + serverPort), 5, credentials); + new HttpBlobStore(new URI("http://localhost:" + serverPort), 30, credentials); blobStore.put("key", 1, new ByteArrayInputStream(new byte[] {0})); fail("Exception expected."); } catch (Exception e) { |