diff options
author | Martin Ritchie <ritchiem@apache.org> | 2008-03-17 14:22:13 +0000 |
---|---|---|
committer | Martin Ritchie <ritchiem@apache.org> | 2008-03-17 14:22:13 +0000 |
commit | 384943f1766aa295a8fa05603300dc940db94200 (patch) | |
tree | c641027498f36f25f9be5bc591c6c86b1d60371d | |
parent | f2235c6a4674c2be1698374ea13086adaaf0fbf1 (diff) | |
download | qpid-python-384943f1766aa295a8fa05603300dc940db94200.tar.gz |
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
-rw-r--r-- | java/systests/src/main/java/org/apache/qpid/test/client/QueueBrowserAutoAckTest.java | 10 |
1 files changed, 10 insertions, 0 deletions
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; |