activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuco...@apache.org
Subject [activemq-artemis] 02/03: NO-JIRA test fix (Adding Wait clause)
Date Thu, 01 Aug 2019 20:15:29 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

commit b1c3f52cc8e3739a6264318e781285cf58a070e1
Author: Clebert Suconic <clebertsuconic@apache.org>
AuthorDate: Thu Aug 1 10:01:09 2019 -0400

    NO-JIRA test fix (Adding Wait clause)
---
 .../activemq/artemis/tests/integration/amqp/JMSQueueBrowserTest.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/amqp/JMSQueueBrowserTest.java
b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/amqp/JMSQueueBrowserTest.java
index 0c266e1..7ab5333 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/amqp/JMSQueueBrowserTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/amqp/JMSQueueBrowserTest.java
@@ -260,9 +260,9 @@ public class JMSQueueBrowserTest extends JMSClientTestSupport {
       browser.close();
 
       // Now check that all browser work did not affect the session transaction.
-      assertEquals(5, queueView.getMessageCount());
+      Wait.assertEquals(5, queueView::getMessageCount);
       session.commit();
-      assertEquals(10, queueView.getMessageCount());
+      Wait.assertEquals(10, queueView::getMessageCount);
    }
 
    @Test(timeout = 60000)


Mime
View raw message