ARTEMIS-1011 Small adjustment on test
This commit is contained in:
parent
19ebbfb5f0
commit
9818206bd3
|
@ -269,13 +269,9 @@ public class SlowConsumerTest extends ActiveMQTestBase {
|
|||
ClientConsumer consumer = addClientConsumer(session.createConsumer(QUEUE));
|
||||
session.start();
|
||||
|
||||
Wait.waitFor(new Wait.Condition() {
|
||||
@Override
|
||||
public boolean isSatisfied() throws Exception {
|
||||
forceGC();
|
||||
return queue.getConsumerCount() == 0;
|
||||
}
|
||||
}, 3000, 100);
|
||||
Wait.waitFor(consumer::isClosed, 3000, 100);
|
||||
|
||||
Assert.assertTrue(consumer.isClosed());
|
||||
|
||||
try {
|
||||
consumer.receive(500);
|
||||
|
|
Loading…
Reference in New Issue