From 8859d99224a76421cafb0bc9928e9139ddf43df2 Mon Sep 17 00:00:00 2001 From: Clebert Suconic Date: Sat, 5 May 2018 15:10:43 -0400 Subject: [PATCH] NO-JIRA fixing race on a test --- .../artemis/tests/integration/management/QueueControlTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/QueueControlTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/QueueControlTest.java index 7bef025ddf..0b96e37fa6 100644 --- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/QueueControlTest.java +++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/QueueControlTest.java @@ -2409,6 +2409,7 @@ public class QueueControlTest extends ManagementTestBase { ClientMessage message = session.createMessage(durable); producer.send(message); + Wait.assertEquals(1, queueControl::getMessageCount); // the message IDs are set on the server Map[] messages = queueControl.listMessages(null); Assert.assertEquals(1, messages.length);