[hornetq-commits] JBoss hornetq SVN: r9774 - branches/2_2_0_HA_Improvements/tests/src/org/hornetq/tests/integration/remoting.

do-not-reply at jboss.org do-not-reply at jboss.org
Tue Oct 12 03:49:51 EDT 2010


Author: ataylor
Date: 2010-10-12 03:49:51 -0400 (Tue, 12 Oct 2010)
New Revision: 9774

Modified:
   branches/2_2_0_HA_Improvements/tests/src/org/hornetq/tests/integration/remoting/NetworkAddressTestBase.java
Log:
fixed network address test

Modified: branches/2_2_0_HA_Improvements/tests/src/org/hornetq/tests/integration/remoting/NetworkAddressTestBase.java
===================================================================
--- branches/2_2_0_HA_Improvements/tests/src/org/hornetq/tests/integration/remoting/NetworkAddressTestBase.java	2010-10-12 07:46:46 UTC (rev 9773)
+++ branches/2_2_0_HA_Improvements/tests/src/org/hornetq/tests/integration/remoting/NetworkAddressTestBase.java	2010-10-12 07:49:51 UTC (rev 9774)
@@ -206,19 +206,18 @@
       {
          ServerLocator locator = HornetQClient.createServerLocatorWithoutHA(connectorConfig);
 
-         ClientSessionFactory sf = locator.createSessionFactory();
 
          if (mustConnect)
          {
-            ClientSession session = sf.createSession(false, true, true);
-            session.close();
+            ClientSessionFactory sf = locator.createSessionFactory();
+            sf.close();
             System.out.println("connection OK");
          }
          else
          {
             try
             {
-               sf.createSession(false, true, true);
+               ClientSessionFactory sf = locator.createSessionFactory();
                Assert.fail("session creation must fail because connector must not be able to connect to the server bound to another network interface");
             }
             catch (Exception e)



More information about the hornetq-commits mailing list