summaryrefslogtreecommitdiff
path: root/qpid/python/tests/queue.py
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2007-01-18 08:14:36 +0000
committerGordon Sim <gsim@apache.org>2007-01-18 08:14:36 +0000
commit6fc4eec9fcf8d659b055d994119a1871d09c1d90 (patch)
tree0c079df785474760897a3dfd2cbf2a7ded144e58 /qpid/python/tests/queue.py
parentb83efc69f6c51ae4cf388b78830e4d853b662a7a (diff)
downloadqpid-python-6fc4eec9fcf8d659b055d994119a1871d09c1d90.tar.gz
Modified handling of reason for closing in peer to work around race between worker and reader where a connection.close is followed by the socket closing (this is a bit of a hack).
Modified test for queue_purge to do cleanup on new connection. Separated testing of scenario where closed channel is used from that where an unopened channel is used. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@497342 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python/tests/queue.py')
-rw-r--r--qpid/python/tests/queue.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/qpid/python/tests/queue.py b/qpid/python/tests/queue.py
index d5c13fa87a..9e32c44fd5 100644
--- a/qpid/python/tests/queue.py
+++ b/qpid/python/tests/queue.py
@@ -74,7 +74,8 @@ class QueueTests(TestBase):
self.assertConnectionException(530, e.args[0])
#cleanup
- channel = self.client.channel(4)
+ other = self.connect()
+ channel = other.channel(1)
channel.channel_open()
channel.exchange_delete(exchange="test-exchange")