[jboss-cvs] JBoss Messaging SVN: r2060 - in trunk/tests/src/org/jboss/test/messaging: tools and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Jan 25 15:28:09 EST 2007


Author: clebert.suconic at jboss.com
Date: 2007-01-25 15:28:09 -0500 (Thu, 25 Jan 2007)
New Revision: 2060

Modified:
   trunk/tests/src/org/jboss/test/messaging/jms/bridge/ReconnectTest.java
   trunk/tests/src/org/jboss/test/messaging/tools/ServerManagement.java
Log:
http://jira.jboss.org/jira/browse/JBMESSAGING-781 - As it's required to set the server null every time you poison the server, I'm setting the server to null when poisonServer is called.

Modified: trunk/tests/src/org/jboss/test/messaging/jms/bridge/ReconnectTest.java
===================================================================
--- trunk/tests/src/org/jboss/test/messaging/jms/bridge/ReconnectTest.java	2007-01-25 20:16:36 UTC (rev 2059)
+++ trunk/tests/src/org/jboss/test/messaging/jms/bridge/ReconnectTest.java	2007-01-25 20:28:09 UTC (rev 2060)
@@ -345,8 +345,6 @@
          
          ServerManagement.poisonTheServer(1, PoisonInterceptor.TYPE_2PC_COMMIT);
          
-         ServerManagement.nullServer(1);
-         
          log.info("Poisoned server");
          
                      

Modified: trunk/tests/src/org/jboss/test/messaging/tools/ServerManagement.java
===================================================================
--- trunk/tests/src/org/jboss/test/messaging/tools/ServerManagement.java	2007-01-25 20:16:36 UTC (rev 2059)
+++ trunk/tests/src/org/jboss/test/messaging/tools/ServerManagement.java	2007-01-25 20:28:09 UTC (rev 2060)
@@ -273,12 +273,6 @@
       }
    }
 
-   //Need to do this after a poison otherwise this will think the server is still alive
-   public static synchronized void nullServer(int i)
-   {
-      servers[i] = null;
-   }
-
    /**
     * Kills the server and waits keep trying any dumb communication until the server is effectively
     * killed. We had to implement this method as kill will actually schedule a thread that will




More information about the jboss-cvs-commits mailing list