You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by cl...@apache.org on 2018/05/05 19:10:51 UTC

activemq-artemis git commit: NO-JIRA fixing race on a test

Repository: activemq-artemis
Updated Branches:
  refs/heads/master 386494c73 -> 8859d9922


NO-JIRA fixing race 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/8859d992
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/8859d992
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/8859d992

Branch: refs/heads/master
Commit: 8859d99224a76421cafb0bc9928e9139ddf43df2
Parents: 386494c
Author: Clebert Suconic <cl...@apache.org>
Authored: Sat May 5 15:10:43 2018 -0400
Committer: Clebert Suconic <cl...@apache.org>
Committed: Sat May 5 15:10:43 2018 -0400

----------------------------------------------------------------------
 .../artemis/tests/integration/management/QueueControlTest.java      | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/8859d992/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/QueueControlTest.java
----------------------------------------------------------------------
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 7bef025..0b96e37 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<String, Object>[] messages = queueControl.listMessages(null);
       Assert.assertEquals(1, messages.length);