[jboss-remoting-commits] JBoss Remoting SVN: r4108 - remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/bisocket.

jboss-remoting-commits at lists.jboss.org jboss-remoting-commits at lists.jboss.org
Thu May 1 03:20:45 EDT 2008


Author: ron.sigal at jboss.com
Date: 2008-05-01 03:20:45 -0400 (Thu, 01 May 2008)
New Revision: 4108

Modified:
   remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/bisocket/BisocketTestCase.java
Log:
JBREM-930: In testDeadControlConnectionShutdown() make multiple attempts to restart Connector.

Modified: remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/bisocket/BisocketTestCase.java
===================================================================
--- remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/bisocket/BisocketTestCase.java	2008-05-01 07:08:01 UTC (rev 4107)
+++ remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/bisocket/BisocketTestCase.java	2008-05-01 07:20:45 UTC (rev 4108)
@@ -1960,7 +1960,21 @@
       }
       connector.stop();
       log.info("STOPPED CONNECTOR");
-      internalSetUp(port);
+      
+      for (int i = 0; i < 5; i++)
+      {
+         try
+         {
+            internalSetUp(port);
+            break;
+         }
+         catch (Exception e)
+         {
+            log.info("unable to restart connector: retrying in 60 seconds");
+            Thread.sleep(60000);
+         }
+      }
+      
       log.info("RESTARTED CONNECTOR");
       
       // Wait until a failure has been detected on the control connection.




More information about the jboss-remoting-commits mailing list