diff options
author | Gordon Sim <gsim@apache.org> | 2010-01-22 10:58:20 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2010-01-22 10:58:20 +0000 |
commit | 578ab4e8631e778bfdbb4f88b030314471394d53 (patch) | |
tree | ee64e14b131d3dfb2a73e2045efcab7f28ef7bfa /python/qpid/tests/messaging.py | |
parent | af58f5140110d2d8da38773a1b13f6e288f8fa56 (diff) | |
download | qpid-python-578ab4e8631e778bfdbb4f88b030314471394d53.tar.gz |
QPID-2347: Signal deletion of queue to active subscribers via a resource-deleted exception.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@902055 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid/tests/messaging.py')
-rw-r--r-- | python/qpid/tests/messaging.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/python/qpid/tests/messaging.py b/python/qpid/tests/messaging.py index 9a8a4c807c..683bb574ee 100644 --- a/python/qpid/tests/messaging.py +++ b/python/qpid/tests/messaging.py @@ -239,6 +239,12 @@ class SessionTests(Base): pass assert msgs == fetched, "expecting %s, got %s" % (msgs, fetched) self.ssn.acknowledge() + #we set the capacity to 0 to prevent the deletion of the queue - + #triggered the deletion policy when the first receiver is closed - + #resulting in session exceptions being issued for the remaining + #active subscriptions: + for r in [rcv1, rcv2, rcv3]: + r.capacity = 0 # XXX, we need a convenient way to assert that required queues are # empty on setup, and possibly also to drain queues on teardown |