activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuco...@apache.org
Subject [2/2] activemq-artemis git commit: ARTEMIS-1274 MultipleProducersTest.wrongQueue fails
Date Mon, 10 Jul 2017 18:41:42 GMT
ARTEMIS-1274 MultipleProducersTest.wrongQueue fails


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

Branch: refs/heads/master
Commit: ab92306d81df10e6cfdc771973b39980721a6f98
Parents: 75d8a3c
Author: Erich Duda <eduda@redhat.com>
Authored: Mon Jul 3 15:36:28 2017 +0200
Committer: Clebert Suconic <clebertsuconic@apache.org>
Committed: Mon Jul 10 14:41:32 2017 -0400

----------------------------------------------------------------------
 .../artemis/tests/integration/client/MultipleProducersTest.java  | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/ab92306d/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/MultipleProducersTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/MultipleProducersTest.java
b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/MultipleProducersTest.java
index 147e819..f412426 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/MultipleProducersTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/MultipleProducersTest.java
@@ -32,6 +32,7 @@ import org.apache.activemq.artemis.core.settings.impl.AddressFullMessagePolicy;
 import org.apache.activemq.artemis.core.settings.impl.AddressSettings;
 import org.apache.activemq.artemis.core.settings.impl.SlowConsumerPolicy;
 import org.apache.activemq.artemis.tests.util.JMSTestBase;
+import org.apache.activemq.artemis.tests.util.Wait;
 import org.junit.Assert;
 import org.junit.Before;
 import org.junit.Test;
@@ -141,6 +142,9 @@ public class MultipleProducersTest extends JMSTestBase {
 
       conn.close();
 
+      Wait.waitFor(() -> server.locateQueue(queueOneName).getMessageCount() == 5);
+      Wait.waitFor(() -> server.locateQueue(queueTwoName).getMessageCount() == 5);
+
       queueOneMsgCount = server.locateQueue(queueOneName).getMessageCount();
 
       queueTwoMsgCount = server.locateQueue(queueTwoName).getMessageCount();


Mime
View raw message