ARTEMIS-5032: tweak test asserts following a failure in CI

This commit is contained in:
Robbie Gemmell 2024-09-10 13:14:44 +01:00
parent e322a418ce
commit 2365ebf0a7
1 changed files with 2 additions and 2 deletions

View File

@ -314,7 +314,7 @@ public class AmqpMessagePriorityTest extends AmqpClientTestSupport {
sender.send(message);
}
assertEquals(priorityLevels, queueView.getMessageCount());
Wait.assertEquals((long) priorityLevels, queueView::getMessageCount, 2_000, 10);
sender.close();
connection.close();
@ -348,7 +348,7 @@ public class AmqpMessagePriorityTest extends AmqpClientTestSupport {
receiver.close();
connection.close();
assertEquals(0, queueView.getMessageCount());
Wait.assertEquals((long) 0, queueView::getMessageCount, 2_000, 10);
}
}
}