activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dej...@apache.org
Subject svn commit: r933190 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/bugs/AMQ2102Test.java
Date Mon, 12 Apr 2010 10:56:24 GMT
Author: dejanb
Date: Mon Apr 12 10:56:23 2010
New Revision: 933190

URL: http://svn.apache.org/viewvc?rev=933190&view=rev
Log:
AMQ2102Test improvements

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

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/bugs/AMQ2102Test.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/bugs/AMQ2102Test.java?rev=933190&r1=933189&r2=933190&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/bugs/AMQ2102Test.java (original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/bugs/AMQ2102Test.java Mon
Apr 12 10:56:23 2010
@@ -464,7 +464,7 @@ public class AMQ2102Test extends Combina
             }
         };
         t.start();
-        Thread.sleep(2000);
+        master.waitUntilStarted();
         masterUrl = master.getTransportConnectors().get(0).getConnectUri().toString(); 
         
         debug("masterUrl: " + masterUrl);
@@ -474,6 +474,7 @@ public class AMQ2102Test extends Combina
         slave.addConnector("tcp://localhost:0");
         slave.setMasterConnectorURI(masterUrl);
         slave.start();
+        slave.waitUntilStarted();
     }
     
     public void tearDown() throws Exception {



Mime
View raw message