aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test
diff options
context:
space:
mode:
authorGravatar buchgr <buchgr@google.com>2018-03-12 04:13:38 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-03-12 04:15:01 -0700
commitb33e5afa313322a7048044c44d854cbb666b988e (patch)
tree94db9f57bd42b6ca8d4143304125153aeb1a3e27 /src/test
parent658662136e65f54f93a0c81c7fb78dd6b46b55a6 (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')
-rw-r--r--src/test/java/com/google/devtools/build/lib/remote/blobstore/http/HttpBlobStoreTest.java8
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) {