From 3ff9057ac4533b44dedfa2ea913a23a3edd3ab95 Mon Sep 17 00:00:00 2001 From: Clebert Suconic Date: Wed, 12 Apr 2017 11:22:26 -0400 Subject: [PATCH] NO-JIRA Trivial test fix on ProtonTest::testAddressControlSendMessageWithText --- .../activemq/artemis/tests/integration/amqp/ProtonTest.java | 2 ++ 1 file changed, 2 insertions(+) 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 c2201e7f8c..09a44ddd29 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");