diff options
| author | Robert Gemmell <robbie@apache.org> | 2010-02-26 14:39:32 +0000 |
|---|---|---|
| committer | Robert Gemmell <robbie@apache.org> | 2010-02-26 14:39:32 +0000 |
| commit | c934a470993a149a62aaa343f79d6979395ae820 (patch) | |
| tree | ced3c1fd73544a24bf22d8754bbb076c32e5a041 | |
| parent | 4aaa30f5923696eeba381a91a7b5b6938ddd8f4f (diff) | |
| download | qpid-python-c934a470993a149a62aaa343f79d6979395ae820.tar.gz | |
QPID-2417: unsubscribe the durable subscriptions when done to delete the queues
merged from trunk r916356
git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.5.x-dev@916693 13f79535-47bb-0310-9956-ffa450edef68
| -rw-r--r-- | qpid/java/systests/src/main/java/org/apache/qpid/server/queue/TimeToLiveTest.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/qpid/java/systests/src/main/java/org/apache/qpid/server/queue/TimeToLiveTest.java b/qpid/java/systests/src/main/java/org/apache/qpid/server/queue/TimeToLiveTest.java index e14d4011a3..970b08f629 100644 --- a/qpid/java/systests/src/main/java/org/apache/qpid/server/queue/TimeToLiveTest.java +++ b/qpid/java/systests/src/main/java/org/apache/qpid/server/queue/TimeToLiveTest.java @@ -305,6 +305,7 @@ public class TimeToLiveTest extends QpidTestCase Assert.assertFalse("Final message has first set.", receivedSecond.getBooleanProperty("first")); Assert.assertEquals("Final message has incorrect TTL.", 0L, receivedSecond.getLongProperty("TTL")); + clientSession.unsubscribe(getTestQueueName()); clientConnection.close(); producerConnection.close(); @@ -360,6 +361,10 @@ public class TimeToLiveTest extends QpidTestCase producer.close(); producerSession.close(); producerConnection.close(); + + clientSession.unsubscribe("MyDurableTTLSubscription"); + clientSession.close(); + clientConnection.close(); } } |
