mirror of
https://github.com/apache/activemq-artemis.git
synced 2025-03-08 18:29:20 +00:00
NO-JIRA: minor test fix
This commit is contained in:
parent
9956f951a6
commit
5c6c42b940
@ -37,6 +37,7 @@ import org.apache.activemq.artemis.api.core.RoutingType;
|
||||
import org.apache.activemq.artemis.core.server.Queue;
|
||||
import org.apache.activemq.artemis.core.server.impl.AddressInfo;
|
||||
import org.apache.activemq.artemis.tests.util.ActiveMQTestBase;
|
||||
import org.apache.activemq.artemis.tests.util.Wait;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
||||
@ -239,6 +240,7 @@ public class AddressingTest extends ActiveMQTestBase {
|
||||
ClientConsumer consumer = session.createConsumer(queueName);
|
||||
// there is a consumer now so the message should be routed
|
||||
producer.send(session.createMessage(true));
|
||||
Wait.waitFor(() -> queue.getMessageCount() == 1);
|
||||
assertEquals(1, queue.getMessageCount());
|
||||
|
||||
consumer.close();
|
||||
|
Loading…
x
Reference in New Issue
Block a user