From 384943f1766aa295a8fa05603300dc940db94200 Mon Sep 17 00:00:00 2001 From: Martin Ritchie Date: Mon, 17 Mar 2008 14:22:13 +0000 Subject: 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 git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@637896 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/qpid/test/client/QueueBrowserAutoAckTest.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'java') diff --git a/java/systests/src/main/java/org/apache/qpid/test/client/QueueBrowserAutoAckTest.java b/java/systests/src/main/java/org/apache/qpid/test/client/QueueBrowserAutoAckTest.java index c6337d7996..f3fd709df5 100644 --- a/java/systests/src/main/java/org/apache/qpid/test/client/QueueBrowserAutoAckTest.java +++ b/java/systests/src/main/java/org/apache/qpid/test/client/QueueBrowserAutoAckTest.java @@ -64,6 +64,16 @@ public class QueueBrowserAutoAckTest extends FailoverBaseCase } + public void tearDown() throws Exception + { + if (_clientConnection != null) + { + _clientConnection.close(); + } + + super.tearDown(); + } + protected void sendMessages(int num) throws JMSException { Connection producerConnection = null; -- cgit v1.2.1