mirror of https://github.com/apache/activemq.git
https://issues.apache.org/activemq/browse/AMQ-2413 - prevent test failures on slow machines
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@819493 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
87cdbbe961
commit
74148299dc
|
@ -183,6 +183,7 @@ public class AMQ2413Test extends CombinationTestSupport implements MessageListen
|
|||
try {
|
||||
while (count.get() < SEND_COUNT) {
|
||||
if (!receivedMessages.tryAcquire(HANG_THRESHOLD, TimeUnit.SECONDS)) {
|
||||
if (count.get() == SEND_COUNT) break;
|
||||
throw new TimeoutException("Message not received for more than " + HANG_THRESHOLD + " seconds");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue