NO-JIRA Fixing Intermittent failure on AutoCreateExpiryResourcesTest with a Wait.assert change
This commit is contained in:
parent
b1d326ba8b
commit
afa7209011
|
@ -205,8 +205,8 @@ public class AutoCreateExpiryResourcesTest extends ActiveMQTestBase {
|
||||||
|
|
||||||
triggerExpiration(false);
|
triggerExpiration(false);
|
||||||
|
|
||||||
Wait.assertTrue(() -> server.locateQueue(expiryQueueName) != null, EXPIRY_DELAY * 2, 20);
|
Wait.assertTrue(() -> server.locateQueue(expiryQueueName) != null, 2_000, 20);
|
||||||
Wait.assertEquals(COUNT, () -> server.locateQueue(expiryQueueName).getMessageCount(), EXPIRY_DELAY * 2, 20);
|
Wait.assertEquals(COUNT, () -> server.locateQueue(expiryQueueName).getMessageCount(), 2000, 20);
|
||||||
}
|
}
|
||||||
|
|
||||||
private SimpleString getDefaultExpiryQueueName(SimpleString address) {
|
private SimpleString getDefaultExpiryQueueName(SimpleString address) {
|
||||||
|
|
Loading…
Reference in New Issue