mirror of https://github.com/apache/activemq.git
Test can hang if the async event isn't received, add a timeout in the test loop's wait call to prevent this.
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1311402 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
681c1abf37
commit
934eaf9923
|
@ -70,7 +70,7 @@ public class OnePrefetchAsyncConsumerTest extends EmbeddedBrokerTestSupport {
|
|||
long done = System.currentTimeMillis() + getMaxTestTime();
|
||||
synchronized (testMutex) {
|
||||
while (!testMutex.testCompleted && System.currentTimeMillis() < done) {
|
||||
testMutex.wait();
|
||||
testMutex.wait(TimeUnit.SECONDS.toMillis(5));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue