From 174b238b28c9cb1d2d184997dfd1a555ab8f63a5 Mon Sep 17 00:00:00 2001 From: Clebert Suconic Date: Wed, 3 May 2017 09:33:12 -0400 Subject: [PATCH] NO-JIRA: Trivial test fix --- .../artemis/tests/integration/management/AddressControlTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/AddressControlTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/AddressControlTest.java index 7bc648f635..6c58a8a6bd 100644 --- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/AddressControlTest.java +++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/AddressControlTest.java @@ -338,6 +338,7 @@ public class AddressControlTest extends ManagementTestBase { session.createQueue(address, RoutingType.ANYCAST, address.concat('2')); producer.send(session.createMessage(false)); + Wait.waitFor(() -> addressControl.getMessageCount() == 2); assertEquals(2, addressControl.getMessageCount()); }