Author: ron.sigal(a)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.
Show replies by date