NO-JIRA Trivial test fix on ProtonTest::testAddressControlSendMessageWithText

This commit is contained in:
Clebert Suconic 2017-04-12 11:22:26 -04:00
parent a1664bdd47
commit 3ff9057ac4
1 changed files with 2 additions and 0 deletions

View File

@ -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");