Skip to content

Commit 9e5b9fd

Browse files
committed
NO-JIRA: tweak test to retry less, try to make more resilient for slow CI envs
1 parent 90eb60f commit 9e5b9fd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

qpid-jms-client/src/test/java/org/apache/qpid/jms/provider/failover/FailoverIntegrationTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2623,7 +2623,7 @@ public void testTxCommitThrowsWhenNoDischargeResponseSentAndConnectionDrops() th
26232623
testPeer.expectBegin();
26242624

26252625
final JmsConnection connection = establishAnonymousConnecton(
2626-
"failover.maxReconnectAttempts=3&failover.useReconnectBackOff=false", testPeer);
2626+
"failover.maxReconnectAttempts=2&failover.useReconnectBackOff=false", testPeer);
26272627
connection.addConnectionListener(new JmsDefaultConnectionListener() {
26282628
@Override
26292629
public void onConnectionEstablished(URI remoteURI) {
@@ -2669,7 +2669,7 @@ public void onConnectionFailure(Throwable cause) {
26692669
LOG.debug("Commit threw: ", jmsEx);
26702670
}
26712671

2672-
assertTrue(failedConnection.await(5, TimeUnit.SECONDS), "Should reported failed");
2672+
assertTrue(failedConnection.await(6, TimeUnit.SECONDS), "Should reported failed");
26732673

26742674
try {
26752675
connection.close();

0 commit comments

Comments
 (0)