From 604b7c2aa6960edf0fe5b3448aa97c6ce78c0b30 Mon Sep 17 00:00:00 2001 From: Clebert Suconic Date: Mon, 14 Sep 2020 11:28:31 -0400 Subject: [PATCH] NO-JIRA fixing CheckTest with a Wait assertion --- .../src/test/java/org/apache/activemq/cli/test/CheckTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artemis-cli/src/test/java/org/apache/activemq/cli/test/CheckTest.java b/artemis-cli/src/test/java/org/apache/activemq/cli/test/CheckTest.java index 5abc8a6637..7663bf5dd1 100644 --- a/artemis-cli/src/test/java/org/apache/activemq/cli/test/CheckTest.java +++ b/artemis-cli/src/test/java/org/apache/activemq/cli/test/CheckTest.java @@ -381,7 +381,7 @@ public class CheckTest extends CliTestBase { queueControl = (QueueControl)server.getManagementService(). getResource(ResourceNames.QUEUE + queueName); - Assert.assertEquals(messages, queueControl.getMessageCount()); + Wait.assertEquals(messages, queueControl::getMessageCount); } finally { stopServer(); }