mirror of
https://github.com/jetty/jetty.project.git
synced 2025-03-04 21:09:13 +00:00
#6455 disable MaxDuration mechanism in testConnectionMaxUsage as it clashes with the test's assertions
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
This commit is contained in:
parent
bc0fbbb5c1
commit
c753ca0db5
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user