activemq-artemis git commit: NO-JIRA Trivial test fix on ProtonTest::testAddressControlSendMessageWithText

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 Trivial test fix on ProtonTest::testAddressControlSendMessageWithText

clebertsuconic-2
Repository: activemq-artemis
Updated Branches:
  refs/heads/master a1664bdd4 -> 3ff9057ac


NO-JIRA Trivial test fix on ProtonTest::testAddressControlSendMessageWithText


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

Branch: refs/heads/master
Commit: 3ff9057ac4533b44dedfa2ea913a23a3edd3ab95
Parents: a1664bd
Author: Clebert Suconic <[hidden email]>
Authored: Wed Apr 12 11:22:26 2017 -0400
Committer: Clebert Suconic <[hidden email]>
Committed: Wed Apr 12 11:24:16 2017 -0400

----------------------------------------------------------------------
 .../apache/activemq/artemis/tests/integration/amqp/ProtonTest.java | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3ff9057a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/amqp/ProtonTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/amqp/ProtonTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/amqp/ProtonTest.java
index c2201e7..09a44dd 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/amqp/ProtonTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/amqp/ProtonTest.java
@@ -296,6 +296,8 @@ public class ProtonTest extends ProtonTestBase {
       Assert.assertEquals(1, addressControl.getQueueNames().length);
       addressControl.sendMessage(null, org.apache.activemq.artemis.api.core.Message.TEXT_TYPE, "test", false, userName, password);
 
+      Wait.waitFor(() -> addressControl.getMessageCount() == 1);
+
       Assert.assertEquals(1, addressControl.getMessageCount());
 
       Connection connection = createConnection("myClientId");

Loading...