NO-JIRA: Fixing ProtonTest::testAddressControlSendMessage

This commit is contained in:
Clebert Suconic 2017-04-11 19:07:11 -04:00
parent cc22a0286b
commit 5d407a88b3
1 changed files with 2 additions and 0 deletions

View File

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