Skip to content

Commit

Permalink
NO-JIRA: tweak test to retry less, try to make more resilient for slo…
Browse files Browse the repository at this point in the history
…w CI envs
  • Loading branch information
gemmellr committed Sep 12, 2024
1 parent 90eb60f commit 9e5b9fd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 9e5b9fd

Please sign in to comment.