activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dej...@apache.org
Subject svn commit: r819495 - /activemq/branches/activemq-5.3/activemq-core/src/test/java/org/apache/activemq/bugs/AMQ2413Test.java
Date Mon, 28 Sep 2009 11:00:02 GMT
Author: dejanb
Date: Mon Sep 28 11:00:01 2009
New Revision: 819495

URL: http://svn.apache.org/viewvc?rev=819495&view=rev
Log:
merging http://svn.apache.org/viewvc?rev=819493&view=rev

Modified:
    activemq/branches/activemq-5.3/activemq-core/src/test/java/org/apache/activemq/bugs/AMQ2413Test.java

Modified: activemq/branches/activemq-5.3/activemq-core/src/test/java/org/apache/activemq/bugs/AMQ2413Test.java
URL: http://svn.apache.org/viewvc/activemq/branches/activemq-5.3/activemq-core/src/test/java/org/apache/activemq/bugs/AMQ2413Test.java?rev=819495&r1=819494&r2=819495&view=diff
==============================================================================
--- activemq/branches/activemq-5.3/activemq-core/src/test/java/org/apache/activemq/bugs/AMQ2413Test.java
(original)
+++ activemq/branches/activemq-5.3/activemq-core/src/test/java/org/apache/activemq/bugs/AMQ2413Test.java
Mon Sep 28 11:00:01 2009
@@ -183,6 +183,7 @@
         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");
                 }
             }



Mime
View raw message