more generous unit test timeouts
This commit is contained in:
parent
31a23d2671
commit
d458d41632
|
@ -115,8 +115,8 @@ public class HttpConnectionLifecycleTest extends AbstractHttpClientServerTest
|
|||
}
|
||||
});
|
||||
|
||||
Assert.assertTrue(headersLatch.await(5, TimeUnit.SECONDS));
|
||||
Assert.assertTrue(successLatch.await(5, TimeUnit.SECONDS));
|
||||
Assert.assertTrue(headersLatch.await(30, TimeUnit.SECONDS));
|
||||
Assert.assertTrue(successLatch.await(30, TimeUnit.SECONDS));
|
||||
|
||||
Assert.assertEquals(1, idleConnections.size());
|
||||
Assert.assertEquals(0, activeConnections.size());
|
||||
|
@ -166,8 +166,8 @@ public class HttpConnectionLifecycleTest extends AbstractHttpClientServerTest
|
|||
}
|
||||
});
|
||||
|
||||
Assert.assertTrue(beginLatch.await(5, TimeUnit.SECONDS));
|
||||
Assert.assertTrue(failureLatch.await(5, TimeUnit.SECONDS));
|
||||
Assert.assertTrue(beginLatch.await(30, TimeUnit.SECONDS));
|
||||
Assert.assertTrue(failureLatch.await(30, TimeUnit.SECONDS));
|
||||
|
||||
Assert.assertEquals(0, idleConnections.size());
|
||||
Assert.assertEquals(0, activeConnections.size());
|
||||
|
@ -226,7 +226,7 @@ public class HttpConnectionLifecycleTest extends AbstractHttpClientServerTest
|
|||
}
|
||||
});
|
||||
|
||||
Assert.assertTrue(successLatch.await(5, TimeUnit.SECONDS));
|
||||
Assert.assertTrue(successLatch.await(30, TimeUnit.SECONDS));
|
||||
|
||||
Assert.assertEquals(0, idleConnections.size());
|
||||
Assert.assertEquals(0, activeConnections.size());
|
||||
|
@ -300,7 +300,7 @@ public class HttpConnectionLifecycleTest extends AbstractHttpClientServerTest
|
|||
}
|
||||
});
|
||||
|
||||
Assert.assertTrue(successLatch.await(delay * 5, TimeUnit.MILLISECONDS));
|
||||
Assert.assertTrue(successLatch.await(delay * 30, TimeUnit.MILLISECONDS));
|
||||
|
||||
Assert.assertEquals(0, idleConnections.size());
|
||||
Assert.assertEquals(0, activeConnections.size());
|
||||
|
@ -345,7 +345,7 @@ public class HttpConnectionLifecycleTest extends AbstractHttpClientServerTest
|
|||
}
|
||||
});
|
||||
|
||||
Assert.assertTrue(failureLatch.await(5, TimeUnit.SECONDS));
|
||||
Assert.assertTrue(failureLatch.await(30, TimeUnit.SECONDS));
|
||||
|
||||
Assert.assertEquals(0, idleConnections.size());
|
||||
Assert.assertEquals(0, activeConnections.size());
|
||||
|
@ -390,7 +390,7 @@ public class HttpConnectionLifecycleTest extends AbstractHttpClientServerTest
|
|||
}
|
||||
});
|
||||
|
||||
Assert.assertTrue(latch.await(5, TimeUnit.SECONDS));
|
||||
Assert.assertTrue(latch.await(30, TimeUnit.SECONDS));
|
||||
|
||||
Assert.assertEquals(0, idleConnections.size());
|
||||
Assert.assertEquals(0, activeConnections.size());
|
||||
|
@ -443,7 +443,7 @@ public class HttpConnectionLifecycleTest extends AbstractHttpClientServerTest
|
|||
}
|
||||
});
|
||||
|
||||
Assert.assertTrue(latch.await(5, TimeUnit.SECONDS));
|
||||
Assert.assertTrue(latch.await(30, TimeUnit.SECONDS));
|
||||
|
||||
Assert.assertEquals(0, idleConnections.size());
|
||||
Assert.assertEquals(0, activeConnections.size());
|
||||
|
@ -471,7 +471,7 @@ public class HttpConnectionLifecycleTest extends AbstractHttpClientServerTest
|
|||
|
||||
ContentResponse response = client.newRequest(host, port)
|
||||
.scheme(scheme)
|
||||
.timeout(5, TimeUnit.SECONDS)
|
||||
.timeout(30, TimeUnit.SECONDS)
|
||||
.send();
|
||||
|
||||
Assert.assertEquals(200, response.getStatus());
|
||||
|
|
Loading…
Reference in New Issue