You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by cl...@apache.org on 2022/08/29 22:56:24 UTC

[activemq-artemis] branch main updated: NO-JIRA Fixing intermittent failure in StompV11Test

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 aa4c642796 NO-JIRA Fixing intermittent failure in StompV11Test
aa4c642796 is described below

commit aa4c64279602fb4448e77ccde3beb05ea32c03b2
Author: Clebert Suconic <cl...@apache.org>
AuthorDate: Mon Aug 29 16:01:21 2022 -0400

    NO-JIRA Fixing intermittent failure in StompV11Test
---
 .../activemq/artemis/tests/integration/stomp/v11/StompV11Test.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/stomp/v11/StompV11Test.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/stomp/v11/StompV11Test.java
index 749e2a5217..2e6392bae7 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/stomp/v11/StompV11Test.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/stomp/v11/StompV11Test.java
@@ -2222,7 +2222,7 @@ public class StompV11Test extends StompTestBase {
          return server.getRemotingService().getConnections().size() == 0;
       });
 
-      Assert.assertFalse(stompFrameHandler.getHeartBeater().isStarted());
+      Wait.assertFalse(stompFrameHandler.getHeartBeater()::isStarted);
    }
 
    @Test
@@ -2281,7 +2281,7 @@ public class StompV11Test extends StompTestBase {
          return server.getRemotingService().getConnections().size() == 0;
       });
 
-      Assert.assertFalse("HeartBeater is still running!!", stompFrameHandler.getHeartBeater().isStarted());
+      Wait.assertFalse("HeartBeater is still running!!", stompFrameHandler.getHeartBeater()::isStarted);
    }