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 2017/04/19 04:49:57 UTC

[2/3] activemq-artemis git commit: NO-JIRA Fixing AddressControlTest

NO-JIRA Fixing AddressControlTest


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

Branch: refs/heads/master
Commit: 04535ee7626ac79772e975052f1b8e041eacfc52
Parents: c82ac63
Author: Clebert Suconic <cl...@apache.org>
Authored: Tue Apr 18 19:09:01 2017 -0400
Committer: Clebert Suconic <cl...@apache.org>
Committed: Tue Apr 18 19:09:01 2017 -0400

----------------------------------------------------------------------
 .../artemis/tests/integration/management/AddressControlTest.java   | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/04535ee7/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/AddressControlTest.java
----------------------------------------------------------------------
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 08781fe..bf505ed 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
@@ -41,6 +41,7 @@ import org.apache.activemq.artemis.core.security.Role;
 import org.apache.activemq.artemis.core.server.ActiveMQServer;
 import org.apache.activemq.artemis.core.server.impl.QueueImpl;
 import org.apache.activemq.artemis.core.settings.impl.AddressSettings;
+import org.apache.activemq.artemis.tests.util.Wait;
 import org.apache.activemq.artemis.utils.Base64;
 import org.apache.activemq.artemis.utils.RandomUtil;
 import org.junit.Assert;
@@ -345,6 +346,7 @@ public class AddressControlTest extends ManagementTestBase {
       Assert.assertEquals(1, addressControl.getQueueNames().length);
       addressControl.sendMessage(null, Message.BYTES_TYPE, Base64.encodeBytes("test".getBytes()), false, null, null);
 
+      Wait.waitFor(() -> addressControl.getMessageCount() == 1);
       Assert.assertEquals(1, addressControl.getMessageCount());
 
       ClientConsumer consumer = session.createConsumer(address);