Erich Duda created ARTEMIS-1256:
-----------------------------------

             Summary: PagingOMETest.testPageCleanup fails
                 Key: ARTEMIS-1256
                 URL: https://issues.apache.org/jira/browse/ARTEMIS-1256
             Project: ActiveMQ Artemis
          Issue Type: Bug
    Affects Versions: 2.1.0, 1.5.5
            Reporter: Erich Duda


{code}
java.lang.AssertionError: expected:<2> but was:<1>
        at org.junit.Assert.fail(Assert.java:88)
        at org.junit.Assert.failNotEquals(Assert.java:743)
        at org.junit.Assert.assertEquals(Assert.java:118)
        at org.junit.Assert.assertEquals(Assert.java:555)
        at org.junit.Assert.assertEquals(Assert.java:542)
        at 
org.apache.activemq.artemis.tests.extras.byteman.PagingOMETest.testPageCleanup(PagingOMETest.java:148)
{code}

Queue.getMessageCount does not guarantee you get accurate number of messages on 
the queue. To get precise number, the test must wait until all asynchronous 
tasks on queue are finished.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to