NO-JIRA fixing race on a test

This commit is contained in:
Clebert Suconic 2018-05-05 15:10:43 -04:00
parent 386494c73b
commit 8859d99224
1 changed files with 1 additions and 0 deletions

View File

@ -2409,6 +2409,7 @@ public class QueueControlTest extends ManagementTestBase {
ClientMessage message = session.createMessage(durable);
producer.send(message);
Wait.assertEquals(1, queueControl::getMessageCount);
// the message IDs are set on the server
Map<String, Object>[] messages = queueControl.listMessages(null);
Assert.assertEquals(1, messages.length);