From commits-return-59683-archive-asf-public=cust-asf.ponee.io@activemq.apache.org Sun Apr 5 04:59:10 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 4BCAF18065C for ; Sun, 5 Apr 2020 06:59:10 +0200 (CEST) Received: (qmail 19070 invoked by uid 500); 5 Apr 2020 04:59:09 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 19061 invoked by uid 99); 5 Apr 2020 04:59:09 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Apr 2020 04:59:09 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id D9F01819F7; Sun, 5 Apr 2020 04:59:08 +0000 (UTC) Date: Sun, 05 Apr 2020 04:59:08 +0000 To: "commits@activemq.apache.org" Subject: [activemq-artemis] branch master updated: NO-JIRA Fixing intermittent failure on AutoDeleteJmsDestinationTest MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <158606274846.25900.12652405301605247988@gitbox.apache.org> From: clebertsuconic@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: activemq-artemis X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: a30fc81a610bdfd2bcda04539e96a7207f9448e2 X-Git-Newrev: ae17fd6552069c41ab3300ad4767107ade0c614c X-Git-Rev: ae17fd6552069c41ab3300ad4767107ade0c614c X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated 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 ae17fd6 NO-JIRA Fixing intermittent failure on AutoDeleteJmsDestinationTest ae17fd6 is described below commit ae17fd6552069c41ab3300ad4767107ade0c614c Author: Clebert Suconic AuthorDate: Sun Apr 5 00:55:17 2020 -0400 NO-JIRA Fixing intermittent failure on AutoDeleteJmsDestinationTest --- .../tests/integration/client/AutoDeleteJmsDestinationTest.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/AutoDeleteJmsDestinationTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/AutoDeleteJmsDestinationTest.java index 0c63e4c..d36d113 100644 --- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/AutoDeleteJmsDestinationTest.java +++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/AutoDeleteJmsDestinationTest.java @@ -28,6 +28,7 @@ import org.apache.activemq.artemis.api.jms.ActiveMQJMSClient; import org.apache.activemq.artemis.core.server.Queue; import org.apache.activemq.artemis.core.settings.impl.AddressSettings; import org.apache.activemq.artemis.tests.util.JMSTestBase; +import org.apache.activemq.artemis.tests.util.Wait; import org.junit.Assert; import org.junit.Test; @@ -73,6 +74,9 @@ public class AutoDeleteJmsDestinationTest extends JMSTestBase { connection.close(); + SimpleString qname = new SimpleString("test"); + Wait.waitFor(() -> server.getPostOffice().getBinding(qname) == null); + // ensure the queue was removed Assert.assertNull(server.getPostOffice().getBinding(new SimpleString("test"))); @@ -152,8 +156,10 @@ public class AutoDeleteJmsDestinationTest extends JMSTestBase { connection.close(); + SimpleString qName = new SimpleString("test"); + Wait.waitFor(() -> server.locateQueue(qName) == null); // ensure the topic was removed - Assert.assertNull(server.locateQueue(new SimpleString("test"))); + Assert.assertNull(server.locateQueue(qName)); // make sure the JMX control was removed for the JMS topic assertNull(server.getManagementService().getResource("jtest"));