NO-JIRA Improving assertion on MessageExpiredPagingTest

This commit is contained in:
Clebert Suconic 2022-03-01 12:27:01 -05:00
parent 60ce5f9cf1
commit cf49bfaa2b
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ public class MessagesExpiredPagingTest extends ActiveMQTestBase {
for (int i = 0; i < numberOfMessages; i++) {
if (i > 0 && i % pagingInterval == 0) {
for (Consumer c : consumers) {
Wait.waitFor(() -> !queues[0].getPagingStore().isPaging(), 1000, 100, false);
Wait.assertFalse(queues[0].getPagingStore()::isPaging, 5000, 100);
producer.setTimeToLive(TimeUnit.HOURS.toMillis(1));
producer.send(session.createTextMessage("hello" + extraBody));
Wait.assertTrue(() -> c.consumedDelta.get() > 0);