activemq-artemis git commit: NO-JIRA: Simple fix on a test

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

activemq-artemis git commit: NO-JIRA: Simple fix on a test

clebertsuconic-2
Repository: activemq-artemis
Updated Branches:
  refs/heads/master 0bfdcb764 -> c1dfc202e


NO-JIRA: Simple fix on a test


Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/c1dfc202
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/c1dfc202
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/c1dfc202

Branch: refs/heads/master
Commit: c1dfc202e7fede2780e34110767fe1cb489d6617
Parents: 0bfdcb7
Author: Clebert Suconic <[hidden email]>
Authored: Thu Jul 13 10:54:58 2017 -0400
Committer: Clebert Suconic <[hidden email]>
Committed: Thu Jul 13 10:54:58 2017 -0400

----------------------------------------------------------------------
 .../activemq/artemis/tests/integration/paging/PagingTest.java      | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/c1dfc202/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/paging/PagingTest.java
----------------------------------------------------------------------
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 3cb605b..0eb8a57 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

Loading...