Author: ritchiem
Date: Mon Mar 17 07:22:13 2008
New Revision: 637896

URL: http://svn.apache.org/viewvc?rev=637896&view=rev
Log:
QPID-850 : Close client connection if it is appropriate. This was hanging the 
tests because VMTestCase has a dummy test that causes a new connection to be 
init'd but never closed

Modified:
    
incubator/qpid/branches/M2.1/java/systests/src/main/java/org/apache/qpid/test/client/QueueBrowserAutoAckTest.java

Modified: 
incubator/qpid/branches/M2.1/java/systests/src/main/java/org/apache/qpid/test/client/QueueBrowserAutoAckTest.java
URL: 
http://svn.apache.org/viewvc/incubator/qpid/branches/M2.1/java/systests/src/main/java/org/apache/qpid/test/client/QueueBrowserAutoAckTest.java?rev=637896&r1=637895&r2=637896&view=diff
==============================================================================
--- 
incubator/qpid/branches/M2.1/java/systests/src/main/java/org/apache/qpid/test/client/QueueBrowserAutoAckTest.java
 (original)
+++ 
incubator/qpid/branches/M2.1/java/systests/src/main/java/org/apache/qpid/test/client/QueueBrowserAutoAckTest.java
 Mon Mar 17 07:22:13 2008
@@ -64,6 +64,16 @@
 
     }
 
+    public void tearDown() throws Exception
+    {
+        if (_clientConnection != null)
+        {
+            _clientConnection.close();
+        }
+
+        super.tearDown();
+    }
+
     protected void sendMessages(int num) throws JMSException
     {
         Connection producerConnection = null;


Reply via email to