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 2019/08/01 20:15:29 UTC
[activemq-artemis] 02/03: NO-JIRA test fix (Adding Wait clause)
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 <cl...@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)