You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ro...@apache.org on 2024/09/13 09:54:55 UTC

(qpid-jms) branch main updated: NO-JIRA: tweak test to retry less, try to make more resilient for slow CI envs

This is an automated email from the ASF dual-hosted git repository.

robbie pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/qpid-jms.git


The following commit(s) were added to refs/heads/main by this push:
     new 9e5b9fd8 NO-JIRA: tweak test to retry less, try to make more resilient for slow CI envs
9e5b9fd8 is described below

commit 9e5b9fd81a3d3f147feba174e460a75267d613cf
Author: Robbie Gemmell <ro...@apache.org>
AuthorDate: Thu Sep 12 16:53:01 2024 +0100

    NO-JIRA: tweak test to retry less, try to make more resilient for slow CI envs
---
 .../apache/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 b7393b74..6e176d4c 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 class FailoverIntegrationTest extends QpidJmsTestCase {
             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 class FailoverIntegrationTest extends QpidJmsTestCase {
                 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();


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org