[jboss-cvs] JBoss Messaging SVN: r7751 - trunk/tests/src/org/jboss/messaging/tests/integration/client.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Aug 17 08:54:24 EDT 2009


Author: jmesnil
Date: 2009-08-17 08:54:24 -0400 (Mon, 17 Aug 2009)
New Revision: 7751

Modified:
   trunk/tests/src/org/jboss/messaging/tests/integration/client/SessionTest.java
Log:
fixed tests which do not close sessions/connections

Modified: trunk/tests/src/org/jboss/messaging/tests/integration/client/SessionTest.java
===================================================================
--- trunk/tests/src/org/jboss/messaging/tests/integration/client/SessionTest.java	2009-08-17 12:50:24 UTC (rev 7750)
+++ trunk/tests/src/org/jboss/messaging/tests/integration/client/SessionTest.java	2009-08-17 12:54:24 UTC (rev 7751)
@@ -65,10 +65,13 @@
             }
          });
          
-         //Make sure failure listener is closed if server is stopped without session being closed first
+         //Make sure failure listener is called if server is stopped without session being closed first
          server.stop();
          assertTrue(latch.await(5, TimeUnit.SECONDS));
-         
+
+         // not really part of the test,
+         // we still clean up resources left in the VM
+         clientSession.close();
       }
       finally
       {




More information about the jboss-cvs-commits mailing list