activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1406661 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/bugs/AMQ4159Test.java
Date Wed, 07 Nov 2012 14:57:03 GMT
Author: tabish
Date: Wed Nov  7 14:57:02 2012
New Revision: 1406661

URL: http://svn.apache.org/viewvc?rev=1406661&view=rev
Log:
update: https://issues.apache.org/jira/browse/AMQ-4159 

Don't wait forever for test to complete. 

Modified:
    activemq/trunk/activemq-core/src/test/java/org/apache/activemq/bugs/AMQ4159Test.java

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/bugs/AMQ4159Test.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/bugs/AMQ4159Test.java?rev=1406661&r1=1406660&r2=1406661&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/bugs/AMQ4159Test.java (original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/bugs/AMQ4159Test.java Wed
Nov  7 14:57:02 2012
@@ -19,6 +19,7 @@ package org.apache.activemq.bugs;
 
 import java.net.URI;
 import java.util.concurrent.CountDownLatch;
+import java.util.concurrent.TimeUnit;
 import java.util.concurrent.atomic.AtomicInteger;
 
 import org.apache.activemq.JmsMultipleBrokersTestSupport;
@@ -139,7 +140,7 @@ public class AMQ4159Test extends JmsMult
 
         // Wait for several attempts and verify that only a single thread was
         // used to (attempt) to establish the bridge.
-        attemptLatch.await();
+        attemptLatch.await(4, TimeUnit.MINUTES);
         Assert.assertEquals(-1, concurrencyAttempt.get());
     }
 }



Mime
View raw message