Skip to content

Commit

Permalink
#6455 disable MaxDuration mechanism in testConnectionMaxUsage as it …
Browse files Browse the repository at this point in the history
…clashes with the test's assertions

Signed-off-by: Ludovic Orban <[email protected]>
  • Loading branch information
lorban committed Jun 29, 2021
1 parent bc0fbbb commit c753ca0
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,7 @@ public void testConnectionMaxUsage(ConnectionPoolFactory factory) throws Excepti
{
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);
Expand Down

0 comments on commit c753ca0

Please sign in to comment.