Author: jfrederic.clere(a)jboss.com
Date: 2009-03-09 08:40:39 -0400 (Mon, 09 Mar 2009)
New Revision: 2347
Modified:
trunk/mod_cluster/test/java/org/jboss/mod_cluster/TestFailover.java
Log:
Fail early...
Modified: trunk/mod_cluster/test/java/org/jboss/mod_cluster/TestFailover.java
===================================================================
--- trunk/mod_cluster/test/java/org/jboss/mod_cluster/TestFailover.java 2009-03-09
10:47:40 UTC (rev 2346)
+++ trunk/mod_cluster/test/java/org/jboss/mod_cluster/TestFailover.java 2009-03-09
12:40:39 UTC (rev 2347)
@@ -96,6 +96,8 @@
ex.printStackTrace();
clienterror = true;
}
+ if (clienterror)
+ fail("Client error");
// Stop the connector that has received the request...
String node = client.getnode();
@@ -114,9 +116,6 @@
}
}
- if (clienterror)
- fail("Client error");
-
// Run a test on it. (it waits until httpd as received the nodes information).
client.setnode(node);
try {
Show replies by date