NO-JIRA fix intermittent failure, this test failed on local repeat getting a null from immediate
This commit is contained in:
parent
e78136b429
commit
23522fd83d
|
@ -210,6 +210,9 @@ public class SlowConsumerTest extends ActiveMQTestBase {
|
|||
ClientConsumer consumer = addClientConsumer(session.createConsumer(QUEUE));
|
||||
session.start();
|
||||
|
||||
Queue queue = server.locateQueue(QUEUE);
|
||||
Wait.assertTrue(() -> queue.getDeliveringCount() >= 3 * threshold);
|
||||
|
||||
for (int i = 0; i < 3 * threshold; i++) {
|
||||
consumer.receiveImmediate().individualAcknowledge();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue