From c753ca0db547dc44e3979eaee2b897fa0d275406 Mon Sep 17 00:00:00 2001 From: Ludovic Orban Date: Wed, 23 Jun 2021 11:37:49 +0200 Subject: [PATCH] #6455 disable MaxDuration mechanism in testConnectionMaxUsage as it clashes with the test's assertions Signed-off-by: Ludovic Orban --- .../test/java/org/eclipse/jetty/client/ConnectionPoolTest.java | 1 + 1 file changed, 1 insertion(+) 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 7c306225482..93bb1702fd1 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 @@ -568,6 +568,7 @@ public class ConnectionPoolTest { AbstractConnectionPool connectionPool = (AbstractConnectionPool)factory.factory.newConnectionPool(destination); connectionPool.setMaxUsageCount(maxUsageCount); + connectionPool.setMaxDuration(0); // Disable max duration expiry as it may expire the connection between the 1st and 2nd request. return connectionPool; }); client.setMaxConnectionsPerDestination(1);