tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1143126 - /tomcat/trunk/test/org/apache/catalina/tribes/group/TestGroupChannelMemberArrival.java
Date Tue, 05 Jul 2011 16:21:52 GMT
Author: markt
Date: Tue Jul  5 16:21:51 2011
New Revision: 1143126

URL: http://svn.apache.org/viewvc?rev=1143126&view=rev
Log:
Prevent test failures on Linux

Modified:
    tomcat/trunk/test/org/apache/catalina/tribes/group/TestGroupChannelMemberArrival.java

Modified: tomcat/trunk/test/org/apache/catalina/tribes/group/TestGroupChannelMemberArrival.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/catalina/tribes/group/TestGroupChannelMemberArrival.java?rev=1143126&r1=1143125&r2=1143126&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/catalina/tribes/group/TestGroupChannelMemberArrival.java
(original)
+++ tomcat/trunk/test/org/apache/catalina/tribes/group/TestGroupChannelMemberArrival.java
Tue Jul  5 16:21:51 2011
@@ -67,7 +67,11 @@ public class TestGroupChannelMemberArriv
             };
             threads[i] = t;
         }
-        for (int i=0; i<threads.length; i++ ) threads[i].start();
+        for (int i=0; i<threads.length; i++ ) {
+            threads[i].start();
+            // Delay prevents binding errors on linux for BIO & APR
+            Thread.sleep(10);
+        }
         for (int i=0; i<threads.length; i++ ) threads[i].join();
         Thread.sleep(2000);
         System.out.println("All channels started.");



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message