Repository: activemq-artemis Updated Branches: refs/heads/master d11b622f1 -> 4f22a5606
NO-JIRA Trivial test fix Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/4f22a560 Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/4f22a560 Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/4f22a560 Branch: refs/heads/master Commit: 4f22a560667d9794efe9f5b941f52280ed0d172d Parents: d11b622 Author: Clebert Suconic <[email protected]> Authored: Fri May 5 14:45:21 2017 -0400 Committer: Clebert Suconic <[email protected]> Committed: Fri May 5 14:45:21 2017 -0400 ---------------------------------------------------------------------- .../activemq/artemis/tests/integration/client/SessionTest.java | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/4f22a560/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 2242cfc..9954a4e 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 @@ -38,6 +38,7 @@ import org.apache.activemq.artemis.core.settings.impl.AddressSettings; import org.apache.activemq.artemis.spi.core.protocol.RemotingConnection; import org.apache.activemq.artemis.tests.util.ActiveMQTestBase; import org.apache.activemq.artemis.tests.util.CountDownSessionFailureListener; +import org.apache.activemq.artemis.tests.util.Wait; import org.junit.Assert; import org.junit.Before; import org.junit.Test; @@ -482,6 +483,7 @@ public class SessionTest extends ActiveMQTestBase { Assert.assertNotNull(m); m.acknowledge(); clientSession.rollback(); + Wait.waitFor(() -> getMessageCount(q) == 10); Assert.assertEquals(10, getMessageCount(q)); clientSession.close(); sendSession.close();
