activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuco...@apache.org
Subject [2/3] activemq-artemis git commit: NO-JIRA: Fixing ProtonTest::testAddressControlSendMessage
Date Tue, 11 Apr 2017 23:10:31 GMT
NO-JIRA: Fixing ProtonTest::testAddressControlSendMessage


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

Branch: refs/heads/master
Commit: 5d407a88b3d23a802f5891ab512f1d34e7c3da90
Parents: cc22a02
Author: Clebert Suconic <clebertsuconic@apache.org>
Authored: Tue Apr 11 19:07:11 2017 -0400
Committer: Clebert Suconic <clebertsuconic@apache.org>
Committed: Tue Apr 11 19:08:02 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/5d407a88/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 938e7ae..c2201e7 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
@@ -264,6 +264,8 @@ public class ProtonTest extends ProtonTestBase {
       Assert.assertEquals(1, addressControl.getQueueNames().length);
       addressControl.sendMessage(null, org.apache.activemq.artemis.api.core.Message.BYTES_TYPE,
Base64.encodeBytes("test".getBytes()), false, userName, password);
 
+      Wait.waitFor(() -> addressControl.getMessageCount() == 1);
+
       Assert.assertEquals(1, addressControl.getMessageCount());
 
       Connection connection = createConnection("myClientId");


Mime
View raw message