NO-JIRA fixing race on a test
This commit is contained in:
parent
386494c73b
commit
8859d99224
|
@ -2409,6 +2409,7 @@ public class QueueControlTest extends ManagementTestBase {
|
||||||
ClientMessage message = session.createMessage(durable);
|
ClientMessage message = session.createMessage(durable);
|
||||||
producer.send(message);
|
producer.send(message);
|
||||||
|
|
||||||
|
Wait.assertEquals(1, queueControl::getMessageCount);
|
||||||
// the message IDs are set on the server
|
// the message IDs are set on the server
|
||||||
Map<String, Object>[] messages = queueControl.listMessages(null);
|
Map<String, Object>[] messages = queueControl.listMessages(null);
|
||||||
Assert.assertEquals(1, messages.length);
|
Assert.assertEquals(1, messages.length);
|
||||||
|
|
Loading…
Reference in New Issue