[hornetq-commits] JBoss hornetq SVN: r11201 - in branches/Branch_2_2_EAP/tests/src/org/hornetq/tests: util and 1 other directory.

do-not-reply at jboss.org do-not-reply at jboss.org
Sat Aug 13 02:36:26 EDT 2011


Author: clebert.suconic at jboss.com
Date: 2011-08-13 02:36:26 -0400 (Sat, 13 Aug 2011)
New Revision: 11201

Modified:
   branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/integration/cluster/distribution/ClusterTestBase.java
   branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/util/UnitTestCase.java
Log:
increasing timeouts and changing thread shutdowns on tearDown

Modified: branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/integration/cluster/distribution/ClusterTestBase.java
===================================================================
--- branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/integration/cluster/distribution/ClusterTestBase.java	2011-08-13 06:23:19 UTC (rev 11200)
+++ branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/integration/cluster/distribution/ClusterTestBase.java	2011-08-13 06:36:26 UTC (rev 11201)
@@ -2031,7 +2031,7 @@
           * we need to wait a little while between server start up to allow the server to communicate in some order.
           * This is to avoid split brain on startup
           * */
-         Thread.sleep(500);
+         Thread.sleep(1000);
       }
 
    }
@@ -2079,7 +2079,7 @@
             {
                ClusterTestBase.log.info("stopping server " + node);
                servers[node].stop();
-               Thread.sleep(500);
+               Thread.sleep(1000);
                ClusterTestBase.log.info("server " + node + " stopped");
             }
             catch (Exception e)

Modified: branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/util/UnitTestCase.java
===================================================================
--- branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/util/UnitTestCase.java	2011-08-13 06:23:19 UTC (rev 11200)
+++ branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/util/UnitTestCase.java	2011-08-13 06:36:26 UTC (rev 11201)
@@ -1042,7 +1042,9 @@
       {
          log.info(threadDump(e.getMessage()));
          System.err.println(threadDump(e.getMessage()));
-         throw new RuntimeException (e.getMessage(), e);
+         
+         // There's no need to throw this exception as there's another verification for every thread that's coming later
+//         throw new RuntimeException (e.getMessage(), e);
       }
    }
 



More information about the hornetq-commits mailing list