NO-JIRA Trivial test fix

This commit is contained in:
Clebert Suconic 2017-05-05 14:45:21 -04:00
parent d11b622f12
commit 4f22a56066
1 changed files with 2 additions and 0 deletions

View File

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