Repository: activemq-artemis Updated Branches: refs/heads/master 9956f951a -> 5c6c42b94
NO-JIRA: minor test fix Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/5c6c42b9 Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/5c6c42b9 Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/5c6c42b9 Branch: refs/heads/master Commit: 5c6c42b94085721a70d06de53ab313e61c0e491b Parents: 9956f95 Author: Clebert Suconic <[email protected]> Authored: Fri Mar 31 22:50:01 2017 -0400 Committer: Clebert Suconic <[email protected]> Committed: Fri Mar 31 22:50:01 2017 -0400 ---------------------------------------------------------------------- .../artemis/tests/integration/addressing/AddressingTest.java | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/5c6c42b9/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/addressing/AddressingTest.java ---------------------------------------------------------------------- diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/addressing/AddressingTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/addressing/AddressingTest.java index 0610829..df5896e 100644 --- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/addressing/AddressingTest.java +++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/addressing/AddressingTest.java @@ -37,6 +37,7 @@ import org.apache.activemq.artemis.api.core.RoutingType; import org.apache.activemq.artemis.core.server.Queue; import org.apache.activemq.artemis.core.server.impl.AddressInfo; import org.apache.activemq.artemis.tests.util.ActiveMQTestBase; +import org.apache.activemq.artemis.tests.util.Wait; import org.junit.Before; import org.junit.Test; @@ -239,6 +240,7 @@ public class AddressingTest extends ActiveMQTestBase { ClientConsumer consumer = session.createConsumer(queueName); // there is a consumer now so the message should be routed producer.send(session.createMessage(true)); + Wait.waitFor(() -> queue.getMessageCount() == 1); assertEquals(1, queue.getMessageCount()); consumer.close();
