#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:
Ludovic Orban 2021-06-23 11:37:49 +02:00
parent bc0fbbb5c1
commit c753ca0db5
1 changed files with 1 additions and 0 deletions

View File

@ -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);