From commits-return-61869-apmail-activemq-commits-archive=activemq.apache.org@activemq.apache.org Sun Sep 27 04:32:48 2020 Return-Path: X-Original-To: apmail-activemq-commits-archive@www.apache.org Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: from mxout1-ec2-va.apache.org (mxout1-ec2-va.apache.org [3.227.148.255]) by minotaur.apache.org (Postfix) with ESMTP id 8B0071A39C for ; Sun, 27 Sep 2020 04:32:48 +0000 (UTC) Received: from mail.apache.org (mailroute1-lw-us.apache.org [207.244.88.153]) by mxout1-ec2-va.apache.org (ASF Mail Server at mxout1-ec2-va.apache.org) with SMTP id 0FC9B429DB for ; Sun, 27 Sep 2020 04:32:48 +0000 (UTC) Received: (qmail 66503 invoked by uid 500); 27 Sep 2020 04:32:47 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 66436 invoked by uid 500); 27 Sep 2020 04:32:46 -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 66426 invoked by uid 99); 27 Sep 2020 04:32:46 -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, 27 Sep 2020 04:32:46 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id F030E811B2; Sun, 27 Sep 2020 04:32:45 +0000 (UTC) Date: Sun, 27 Sep 2020 04:32:45 +0000 To: "commits@activemq.apache.org" Subject: [activemq-artemis] branch master updated: NO-JIRA Fixing test intermittent failure with a Wait call MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <160118116567.713.7367356392531662223@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: 702f3c453be04722a3903415b4d5360cdf8da11e X-Git-Newrev: 1d9964c2b030b8b7a472a4f5a2ec91ce9c40f0a4 X-Git-Rev: 1d9964c2b030b8b7a472a4f5a2ec91ce9c40f0a4 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 1d9964c NO-JIRA Fixing test intermittent failure with a Wait call 1d9964c is described below commit 1d9964c2b030b8b7a472a4f5a2ec91ce9c40f0a4 Author: Clebert Suconic AuthorDate: Sun Sep 27 00:26:15 2020 -0400 NO-JIRA Fixing test intermittent failure with a Wait call --- .../artemis/tests/integration/client/DeadLetterAddressTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/DeadLetterAddressTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/DeadLetterAddressTest.java index dfc390b..e43c813 100644 --- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/DeadLetterAddressTest.java +++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/DeadLetterAddressTest.java @@ -40,6 +40,7 @@ import org.apache.activemq.artemis.core.server.ActiveMQServers; import org.apache.activemq.artemis.core.server.Queue; import org.apache.activemq.artemis.core.settings.impl.AddressSettings; import org.apache.activemq.artemis.tests.util.ActiveMQTestBase; +import org.apache.activemq.artemis.tests.util.Wait; import org.apache.activemq.artemis.utils.RandomUtil; import org.junit.Assert; import org.junit.Assume; @@ -119,7 +120,7 @@ public class DeadLetterAddressTest extends ActiveMQTestBase { Assert.assertNull(m); clientConsumer.close(); } - assertTrue("File descriptors are leaking", ((UnixOperatingSystemMXBean) os).getOpenFileDescriptorCount() - fdBaseline <= 0); + Wait.assertTrue("File descriptors are leaking", () -> ((UnixOperatingSystemMXBean) os).getOpenFileDescriptorCount() - fdBaseline <= 0); } // HORNETQ- 1084