Skip to content

Commit 760d752

Browse files
committed
Reduce sleep to 4 seconds. Verisign is sending a Keep-Alive header with a timeout of 5 seconds. Can lead to the test failing indeterminately when the sleep was 5 seconds.
1 parent b5d97ef commit 760d752

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/com/ning/http/client/async/NoNullResponseTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public void multipleSslRequestsWithDelayAndKeepAlive() throws Throwable {
3939
try {
4040
final BoundRequestBuilder builder = client.prepareGet(VERISIGN_HTTPS_URL);
4141
final Response response1 = builder.execute().get();
42-
Thread.sleep(5000);
42+
Thread.sleep(4000);
4343
final Response response2 = builder.execute().get();
4444
if (response2 != null) {
4545
System.out.println("Success (2nd response was not null).");

0 commit comments

Comments
 (0)