mirror of
https://github.com/apache/activemq-artemis.git
synced 2025-02-09 03:25:20 +00:00
ARTEMIS-1140: Trivial test fix
(cherry picked from commit 0146109d6a06f9702f245034a43c49dffc5779bd)
This commit is contained in:
parent
534fd8093d
commit
468b8a954b
@ -371,7 +371,15 @@ public abstract class ActiveMQServerTestCase {
|
||||
if (binding != null && binding instanceof LocalQueueBinding) {
|
||||
((LocalQueueBinding) binding).getQueue().flushExecutor();
|
||||
}
|
||||
Long messageCount = ActiveMQServerTestCase.servers.get(0).getMessageCountForQueue(queueName);
|
||||
Long messageCount = null;
|
||||
for (int i = 0; i < 10; i++) {
|
||||
messageCount = servers.get(0).getMessageCountForQueue(queueName);
|
||||
if (messageCount.longValue() == expected) {
|
||||
break;
|
||||
} else {
|
||||
Thread.sleep(100);
|
||||
}
|
||||
}
|
||||
|
||||
ProxyAssertSupport.assertEquals(expected, messageCount.intValue());
|
||||
return expected == messageCount.intValue();
|
||||
|
Loading…
x
Reference in New Issue
Block a user