This is an automated email from the ASF dual-hosted git repository.
clebertsuconic pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git
The following commit(s) were added to refs/heads/main by this push:
new 69df7ea30d ARTEMIS-5173 Fixing a flaky test
69df7ea30d is described below
commit 69df7ea30dfe6f195e5195e82ded62507aed500d
Author: Clebert Suconic <[email protected]>
AuthorDate: Thu Dec 12 10:59:08 2024 -0500
ARTEMIS-5173 Fixing a flaky test
---
.../failover/ReplicatedMultipleServerFailoverExtraBackupsTest.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git
a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/ReplicatedMultipleServerFailoverExtraBackupsTest.java
b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/ReplicatedMultipleServerFailoverExtraBackupsTest.java
index a07eec8704..8b2cde2b07 100644
---
a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/ReplicatedMultipleServerFailoverExtraBackupsTest.java
+++
b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/ReplicatedMultipleServerFailoverExtraBackupsTest.java
@@ -159,7 +159,11 @@ public class
ReplicatedMultipleServerFailoverExtraBackupsTest extends Replicated
CountDownLatch failoverHappened = new CountDownLatch(1);
- session0.addFailoverListener((FailoverEventType type) ->
failoverHappened.countDown());
+ session0.addFailoverListener((FailoverEventType type) -> {
+ if (type == FailoverEventType.FAILOVER_COMPLETED) {
+ failoverHappened.countDown();
+ }
+ });
for (TestableServer testableServer : toCrash) {
testableServer.crash().await(10, TimeUnit.SECONDS);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact