mirror of https://github.com/apache/activemq.git
git-svn-id: https://svn.apache.org/repos/asf/activemq/branches/activemq-5.3@819495 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cb3dd92ed2
commit
a085227268
|
@ -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