From c1dfc202e7fede2780e34110767fe1cb489d6617 Mon Sep 17 00:00:00 2001 From: Clebert Suconic Date: Thu, 13 Jul 2017 10:54:58 -0400 Subject: [PATCH] NO-JIRA: Simple fix on a test --- .../activemq/artemis/tests/integration/paging/PagingTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/paging/PagingTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/paging/PagingTest.java index 3cb605b9c6..0eb8a57844 100644 --- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/paging/PagingTest.java +++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/paging/PagingTest.java @@ -85,6 +85,7 @@ import org.apache.activemq.artemis.logs.AssertionLoggerHandler; import org.apache.activemq.artemis.spi.core.security.ActiveMQSecurityManagerImpl; import org.apache.activemq.artemis.tests.integration.IntegrationTestLogger; import org.apache.activemq.artemis.tests.util.ActiveMQTestBase; +import org.apache.activemq.artemis.tests.util.Wait; import org.jboss.logging.Logger; import org.junit.After; import org.junit.Assert; @@ -4908,6 +4909,7 @@ public class PagingTest extends ActiveMQTestBase { producer.send(message); Queue q = (Queue) server.getPostOffice().getBinding(ADDRESS).getBindable(); + Wait.waitFor(() -> 3 == getMessageCount(q)); Assert.assertEquals(3, getMessageCount(q)); // send a message with a dup ID that should fail b/c the address is full