NO-JIRA fix flaky tests QueueControlTest#testChangeMessagePriority{,WithInvalidValue}
The occasional assertion error is prevented by using Wait.assertEquals where Assert.assertEquals was used previously.
This commit is contained in:
parent
23a30b6158
commit
c6521e0700
|
@ -1926,7 +1926,7 @@ public class QueueControlTest extends ManagementTestBase {
|
|||
producer.send(message);
|
||||
|
||||
QueueControl queueControl = createManagementControl(address, queue);
|
||||
Assert.assertEquals(1, getMessageCount(queueControl));
|
||||
Wait.assertEquals(1, () -> getMessageCount(queueControl));
|
||||
|
||||
// the message IDs are set on the server
|
||||
Map<String, Object>[] messages = queueControl.listMessages(null);
|
||||
|
@ -1959,7 +1959,7 @@ public class QueueControlTest extends ManagementTestBase {
|
|||
producer.send(message);
|
||||
|
||||
QueueControl queueControl = createManagementControl(address, queue);
|
||||
Assert.assertEquals(1, getMessageCount(queueControl));
|
||||
Wait.assertEquals(1, () -> getMessageCount(queueControl));
|
||||
|
||||
// the message IDs are set on the server
|
||||
Map<String, Object>[] messages = queueControl.listMessages(null);
|
||||
|
|
Loading…
Reference in New Issue