diff --git a/jetty-client/src/test/java/org/eclipse/jetty/client/ConnectionPoolTest.java b/jetty-client/src/test/java/org/eclipse/jetty/client/ConnectionPoolTest.java index ab7def6ba4d..5af5a43a50f 100644 --- a/jetty-client/src/test/java/org/eclipse/jetty/client/ConnectionPoolTest.java +++ b/jetty-client/src/test/java/org/eclipse/jetty/client/ConnectionPoolTest.java @@ -379,7 +379,7 @@ public class ConnectionPoolTest @MethodSource("pools") public void testConcurrentRequestsAllBlockedOnServerWithLargeConnectionPool(ConnectionPoolFactory factory) throws Exception { - int count = 50; + int count = 10; testConcurrentRequestsAllBlockedOnServer(factory, count, 2 * count); } @@ -387,7 +387,7 @@ public class ConnectionPoolTest @MethodSource("pools") public void testConcurrentRequestsAllBlockedOnServerWithExactConnectionPool(ConnectionPoolFactory factory) throws Exception { - int count = 50; + int count = 10; testConcurrentRequestsAllBlockedOnServer(factory, count, count); } @@ -441,10 +441,12 @@ public class ConnectionPoolTest { if (result.isSucceeded()) latch.countDown(); + else + result.getFailure().printStackTrace(); })); } - assertTrue(latch.await(5, TimeUnit.SECONDS), "server requests " + barrier.getNumberWaiting() + "<" + count + " - client: " + client.dump()); + assertTrue(latch.await(15, TimeUnit.SECONDS), "server requests " + barrier.getNumberWaiting() + "<" + count + " - client: " + client.dump()); List destinations = client.getDestinations(); assertEquals(1, destinations.size()); // The max duration connection pool aggressively closes expired connections upon release, which interferes with this assertion.