activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuco...@apache.org
Subject [activemq-artemis] branch master updated: NO-JIRA Fixing test intermittent failure with a Wait call
Date Sun, 27 Sep 2020 04:32:45 GMT
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 <clebertsuconic@apache.org>
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


Mime
View raw message