NO-JIRA Improving Assert.equals count on SessionTest
This commit is contained in:
parent
183ebcc5f8
commit
9b7ebef9fd
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue