From 91df06f177b9da95be08040145692865e9903507 Mon Sep 17 00:00:00 2001 From: Robbie Gemmell Date: Thu, 12 Sep 2024 16:53:01 +0100 Subject: [PATCH] NO-JIRA: tweak test to retry less, try to make more resilient for slow CI envs --- .../qpid/jms/provider/failover/FailoverIntegrationTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/provider/failover/FailoverIntegrationTest.java b/qpid-jms-client/src/test/java/org/apache/qpid/jms/provider/failover/FailoverIntegrationTest.java index a6e350a88..3585c9942 100644 --- a/qpid-jms-client/src/test/java/org/apache/qpid/jms/provider/failover/FailoverIntegrationTest.java +++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/provider/failover/FailoverIntegrationTest.java @@ -2623,7 +2623,7 @@ public void testTxCommitThrowsWhenNoDischargeResponseSentAndConnectionDrops() th testPeer.expectBegin(); final JmsConnection connection = establishAnonymousConnecton( - "failover.maxReconnectAttempts=3&failover.useReconnectBackOff=false", testPeer); + "failover.maxReconnectAttempts=2&failover.useReconnectBackOff=false", testPeer); connection.addConnectionListener(new JmsDefaultConnectionListener() { @Override public void onConnectionEstablished(URI remoteURI) { @@ -2669,7 +2669,7 @@ public void onConnectionFailure(Throwable cause) { LOG.debug("Commit threw: ", jmsEx); } - assertTrue(failedConnection.await(5, TimeUnit.SECONDS), "Should reported failed"); + assertTrue(failedConnection.await(6, TimeUnit.SECONDS), "Should reported failed"); try { connection.close();