activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuco...@apache.org
Subject [activemq-artemis] branch main updated: NO-JIRA Fixing Intermittent failure on AutoCreateExpiryResourcesTest with a Wait.assert change
Date Wed, 16 Jun 2021 13:31:22 GMT
This is an automated email from the ASF dual-hosted git repository.

clebertsuconic pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git


The following commit(s) were added to refs/heads/main by this push:
     new afa7209  NO-JIRA Fixing Intermittent failure on AutoCreateExpiryResourcesTest with
a Wait.assert change
afa7209 is described below

commit afa7209011324a74916665af014f3b257828859c
Author: Clebert Suconic <clebertsuconic@apache.org>
AuthorDate: Wed Jun 16 09:20:07 2021 -0400

    NO-JIRA Fixing Intermittent failure on AutoCreateExpiryResourcesTest with a Wait.assert
change
---
 .../tests/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 7d46785..29a9991 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) {

Mime
View raw message