[jboss-cvs] JBoss Messaging SVN: r1862 - trunk/tests/src/org/jboss/test/messaging/jms/clustering

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Dec 27 16:09:36 EST 2006


Author: clebert.suconic at jboss.com
Date: 2006-12-27 16:09:35 -0500 (Wed, 27 Dec 2006)
New Revision: 1862

Modified:
   trunk/tests/src/org/jboss/test/messaging/jms/clustering/FailoverTest.java
Log:
Fixing the test, as we need to wait until the server was killed

Modified: trunk/tests/src/org/jboss/test/messaging/jms/clustering/FailoverTest.java
===================================================================
--- trunk/tests/src/org/jboss/test/messaging/jms/clustering/FailoverTest.java	2006-12-27 21:07:40 UTC (rev 1861)
+++ trunk/tests/src/org/jboss/test/messaging/jms/clustering/FailoverTest.java	2006-12-27 21:09:35 UTC (rev 1862)
@@ -74,12 +74,21 @@
 
          // kill node 1
 
-         ServerManagement.kill(1);
 
          log.info("########");
          log.info("######## KILLED NODE 1");
          log.info("########");
 
+         ServerManagement.killAndWait(1);
+         try
+         {
+            ic[1].lookup("queue"); // looking up anything
+            fail("The server still alive, kill didn't work yet");
+         }
+         catch (Exception e)
+         {
+         }
+
          // TODO - this shouldn't be necessary if we have the client valve in place
          log.info("Sleeping for 60 sec");
          Thread.sleep(60000);




More information about the jboss-cvs-commits mailing list