activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuco...@apache.org
Subject activemq-artemis git commit: NO-JIRA Improving Assert.equals count on SessionTest
Date Wed, 30 May 2018 19:31:40 GMT
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 <clebertsuconic@apache.org>
Authored: Wed May 30 15:28:37 2018 -0400
Committer: Clebert Suconic <clebertsuconic@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();
    }


Mime
View raw message