You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by cl...@apache.org on 2020/11/12 15:31:20 UTC
[activemq-artemis] branch master updated: NO-JIRA Fixing
Intermittent Failure on TransientQueueTest
This is an automated email from the ASF dual-hosted git repository.
clebertsuconic pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git
The following commit(s) were added to refs/heads/master by this push:
new 80fa86b NO-JIRA Fixing Intermittent Failure on TransientQueueTest
80fa86b is described below
commit 80fa86b738b65a67d440ab91c4fb61db2a219d51
Author: Clebert Suconic <cl...@apache.org>
AuthorDate: Thu Nov 12 10:24:56 2020 -0500
NO-JIRA Fixing Intermittent Failure on TransientQueueTest
---
.../activemq/artemis/tests/integration/client/TransientQueueTest.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/TransientQueueTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/TransientQueueTest.java
index 5040c3c..a0417e7 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/TransientQueueTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/TransientQueueTest.java
@@ -117,10 +117,12 @@ public class TransientQueueTest extends SingleServerTestBase {
consumer2.close();
// validate if the queue was deleted after the consumer was closed
- Wait.assertTrue(() -> server.locateQueue(queue) == null, 2000, 100);
+ Wait.assertTrue(() -> server.locateQueue(queue) == null && server.getAddressInfo(address) == null, 2000, 100);
session.createSharedQueue(new QueueConfiguration(queue).setAddress(address).setDurable(false));
+ Wait.assertTrue(() -> server.locateQueue(queue) != null && server.getAddressInfo(address) != null, 2000, 100);
+
consumer1 = session.createConsumer(queue);
Wait.assertTrue(() -> server.locateQueue(queue) != null, 2000, 100);