NO-JIRA Fixing ExpiryRunnerTest intermittent test failure
This commit is contained in:
parent
fac1c4320d
commit
52f429afa1
|
@ -135,9 +135,9 @@ public class ExpiryRunnerTest extends ActiveMQTestBase {
|
||||||
Assert.assertEquals("m" + i, cm.getBodyBuffer().readString());
|
Assert.assertEquals("m" + i, cm.getBodyBuffer().readString());
|
||||||
}
|
}
|
||||||
consumer.close();
|
consumer.close();
|
||||||
Thread.sleep(2100);
|
Wait.assertEquals(0, ((Queue) server.getPostOffice().getBinding(qName).getBindable())::getMessageCount);
|
||||||
Assert.assertEquals(0, ((Queue) server.getPostOffice().getBinding(qName).getBindable()).getMessageCount());
|
Wait.assertEquals(0, ((Queue) server.getPostOffice().getBinding(qName).getBindable())::getDeliveringCount);
|
||||||
Assert.assertEquals(0, ((Queue) server.getPostOffice().getBinding(qName).getBindable()).getDeliveringCount());
|
Wait.assertEquals(numMessages / 2, ((Queue) server.getPostOffice().getBinding(qName).getBindable())::getMessagesExpired);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
Loading…
Reference in New Issue