From aa4c64279602fb4448e77ccde3beb05ea32c03b2 Mon Sep 17 00:00:00 2001 From: Clebert Suconic Date: Mon, 29 Aug 2022 16:01:21 -0400 Subject: [PATCH] NO-JIRA Fixing intermittent failure in StompV11Test --- .../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); }