Author: jfrederic.clere(a)jboss.com
Date: 2009-03-12 07:13:41 -0400 (Thu, 12 Mar 2009)
New Revision: 2353
Modified:
trunk/mod_cluster/test/java/org/jboss/mod_cluster/TestStickyForce.java
Log:
Make sure the stopped connector is not answering.
Modified: trunk/mod_cluster/test/java/org/jboss/mod_cluster/TestStickyForce.java
===================================================================
--- trunk/mod_cluster/test/java/org/jboss/mod_cluster/TestStickyForce.java 2009-03-12
09:58:27 UTC (rev 2352)
+++ trunk/mod_cluster/test/java/org/jboss/mod_cluster/TestStickyForce.java 2009-03-12
11:13:41 UTC (rev 2353)
@@ -124,6 +124,15 @@
ex.printStackTrace();
fail("can't stop connector");
}
+ /* wait until the connector has stopped */
+ while (Maintest.testPort(port) && countinfo < 20) {
+ try {
+ Thread.sleep(3000);
+ } catch (InterruptedException ex) {
+ ex.printStackTrace();
+ }
+ countinfo++;
+ }
}
// Run a test on it. (it waits until httpd as received the nodes information).
Show replies by date