Author: ataylor
Date: 2010-11-04 04:04:34 -0400 (Thu, 04 Nov 2010)
New Revision: 9843
Modified:
branches/2_2_0_HA_Improvements/tests/src/org/hornetq/tests/integration/client/SessionCloseOnGCTest.java
Log:
test fix
Modified:
branches/2_2_0_HA_Improvements/tests/src/org/hornetq/tests/integration/client/SessionCloseOnGCTest.java
===================================================================
---
branches/2_2_0_HA_Improvements/tests/src/org/hornetq/tests/integration/client/SessionCloseOnGCTest.java 2010-11-04
08:02:21 UTC (rev 9842)
+++
branches/2_2_0_HA_Improvements/tests/src/org/hornetq/tests/integration/client/SessionCloseOnGCTest.java 2010-11-04
08:04:34 UTC (rev 9843)
@@ -282,8 +282,8 @@
UnitTestCase.checkWeakReferences(wses);
Assert.assertEquals(0, sf.numSessions());
- Assert.assertEquals(0, sf.numConnections());
- Assert.assertEquals(0, server.getRemotingService().getConnections().size());
+ Assert.assertEquals(1, sf.numConnections());
+ Assert.assertEquals(1, server.getRemotingService().getConnections().size());
}
public void testCloseSeveralSessionOnGC() throws Exception
@@ -307,8 +307,8 @@
UnitTestCase.checkWeakReferences(ref1, ref2, ref3);
Assert.assertEquals(0, sf.numSessions());
- Assert.assertEquals(0, sf.numConnections());
- Assert.assertEquals(0, server.getRemotingService().getConnections().size());
+ Assert.assertEquals(1, sf.numConnections());
+ Assert.assertEquals(1, server.getRemotingService().getConnections().size());
}
}
Show replies by date