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 2018/05/30 19:31:40 UTC
activemq-artemis git commit: NO-JIRA Improving Assert.equals count on
SessionTest
Repository: activemq-artemis
Updated Branches:
refs/heads/master 183ebcc5f -> 9b7ebef9f
NO-JIRA Improving Assert.equals count on SessionTest
Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/9b7ebef9
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/9b7ebef9
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/9b7ebef9
Branch: refs/heads/master
Commit: 9b7ebef9fd163815a5b4cab1cef4a88b1e7baefa
Parents: 183ebcc
Author: Clebert Suconic <cl...@apache.org>
Authored: Wed May 30 15:28:37 2018 -0400
Committer: Clebert Suconic <cl...@apache.org>
Committed: Wed May 30 15:29:06 2018 -0400
----------------------------------------------------------------------
.../activemq/artemis/tests/integration/client/SessionTest.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/9b7ebef9/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/SessionTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/SessionTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/SessionTest.java
index 0175caa..e1f9959 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/SessionTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/SessionTest.java
@@ -483,8 +483,7 @@ public class SessionTest extends ActiveMQTestBase {
Assert.assertNotNull(m);
m.acknowledge();
clientSession.rollback();
- Wait.waitFor(() -> getMessageCount(q) == 10);
- Assert.assertEquals(10, getMessageCount(q));
+ Wait.assertEquals(10, () -> getMessageCount(q));
clientSession.close();
sendSession.close();
}