NO-JIRA Improving Assert.equals count on SessionTest

This commit is contained in:
Clebert Suconic 2018-05-30 15:28:37 -04:00
parent 183ebcc5f8
commit 9b7ebef9fd
1 changed files with 1 additions and 2 deletions

View File

@ -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();
}