NO-JIRA Improving assertion on MessageExpiredPagingTest
This commit is contained in:
parent
60ce5f9cf1
commit
cf49bfaa2b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue