NO-JIRA Fixing Intermittent failure on AutoCreateExpiryResourcesTest with a Wait.assert change

This commit is contained in:
Clebert Suconic 2021-06-16 09:20:07 -04:00
parent b1d326ba8b
commit afa7209011
1 changed files with 2 additions and 2 deletions

View File

@ -205,8 +205,8 @@ public class AutoCreateExpiryResourcesTest extends ActiveMQTestBase {
triggerExpiration(false);
Wait.assertTrue(() -> server.locateQueue(expiryQueueName) != null, EXPIRY_DELAY * 2, 20);
Wait.assertEquals(COUNT, () -> server.locateQueue(expiryQueueName).getMessageCount(), EXPIRY_DELAY * 2, 20);
Wait.assertTrue(() -> server.locateQueue(expiryQueueName) != null, 2_000, 20);
Wait.assertEquals(COUNT, () -> server.locateQueue(expiryQueueName).getMessageCount(), 2000, 20);
}
private SimpleString getDefaultExpiryQueueName(SimpleString address) {