Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: try to deflake connect timeout test
  • Loading branch information
chingor13 committed Aug 31, 2019
commit cd4bd67f60264fe0652fcee8a27c3c14db7448b2
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,12 @@ public void process(HttpRequest request, HttpContext context)
assertTrue("Expected to have called our test interceptor", interceptorCalled.get());
}

@Test(timeout = 2000L)
@Test(timeout = 10_000L)
public void testConnectTimeout() {
HttpTransport httpTransport = new ApacheHttpTransport();
GenericUrl url = new GenericUrl("http://google.com:81");
try {
httpTransport.createRequestFactory().buildGetRequest(url).setConnectTimeout(10).execute();
httpTransport.createRequestFactory().buildGetRequest(url).setConnectTimeout(5).execute();
fail("should have thrown an exception");
} catch (HttpHostConnectException expected) {
// expected
Expand Down