Repository: activemq-artemis Updated Branches: refs/heads/2.6.x 04d3ef894 -> 000a2781d
NO-JIRA Improving Assert.equals count on SessionTest (cherry picked from commit 9b7ebef9fd163815a5b4cab1cef4a88b1e7baefa) Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/f011ea67 Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/f011ea67 Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/f011ea67 Branch: refs/heads/2.6.x Commit: f011ea679bd8f00f67b0428ea823064387e55480 Parents: 04d3ef8 Author: Clebert Suconic <[email protected]> Authored: Wed May 30 15:28:37 2018 -0400 Committer: Clebert Suconic <[email protected]> Committed: Thu May 31 19:17:53 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/f011ea67/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(); }
