From afa7209011324a74916665af014f3b257828859c Mon Sep 17 00:00:00 2001 From: Clebert Suconic Date: Wed, 16 Jun 2021 09:20:07 -0400 Subject: [PATCH] NO-JIRA Fixing Intermittent failure on AutoCreateExpiryResourcesTest with a Wait.assert change --- .../integration/server/AutoCreateExpiryResourcesTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/server/AutoCreateExpiryResourcesTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/server/AutoCreateExpiryResourcesTest.java index 7d46785c2a..29a99916da 100644 --- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/server/AutoCreateExpiryResourcesTest.java +++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/server/AutoCreateExpiryResourcesTest.java @@ -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) {