ARTEMIS-3464 Fixing PageAckScanTest

This commit is contained in:
Clebert Suconic 2021-09-10 21:39:31 -04:00
parent 354fa5bf15
commit 5dbbc98a62
1 changed files with 3 additions and 1 deletions

View File

@ -139,7 +139,9 @@ public class PageAckScanTest extends ActiveMQTestBase {
subscription.addScanAck(() -> false, new CompareI(11), done, notFound); subscription.addScanAck(() -> false, new CompareI(11), done, notFound);
subscription.addScanAck(() -> false, new CompareI(99), done, notFound); subscription.addScanAck(() -> false, new CompareI(99), done, notFound);
subscription.addScanAck(() -> false, new CompareI(-30), done, notFound); subscription.addScanAck(() -> false, new CompareI(-30), done, notFound);
subscription.addScanAck(() -> true, new CompareI(333), retried::incrementAndGet, notFound); subscription.addScanAck(() -> {
retried.incrementAndGet();
return true;}, new CompareI(333), done, notFound);
subscription.performScanAck(); subscription.performScanAck();
Assert.assertTrue(latch.await(5, TimeUnit.MINUTES)); Assert.assertTrue(latch.await(5, TimeUnit.MINUTES));
Assert.assertEquals(2, errors.get()); Assert.assertEquals(2, errors.get());