diff options
Diffstat (limited to 'qpid/tests/src/py/qpid_tests/broker_0_10/message.py')
-rw-r--r-- | qpid/tests/src/py/qpid_tests/broker_0_10/message.py | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/qpid/tests/src/py/qpid_tests/broker_0_10/message.py b/qpid/tests/src/py/qpid_tests/broker_0_10/message.py index b46c446833..e80333a1e6 100644 --- a/qpid/tests/src/py/qpid_tests/broker_0_10/message.py +++ b/qpid/tests/src/py/qpid_tests/broker_0_10/message.py @@ -245,19 +245,9 @@ class MessageTests(TestBase010): self.fail("Got message after cancellation: " + msg) except Empty: None - #cancellation of non-existant consumers should be result in 404s - try: - session.message_cancel(destination="my-consumer") - self.fail("Expected 404 for recancellation of subscription.") - except SessionException, e: - self.assertEquals(404, e.args[0].error_code) - - session = self.conn.session("alternate-session", timeout=10) - try: - session.message_cancel(destination="this-never-existed") - self.fail("Expected 404 for cancellation of unknown subscription.") - except SessionException, e: - self.assertEquals(404, e.args[0].error_code) + #cancellation of non-existant consumers should be handled without error + session.message_cancel(destination="my-consumer") + session.message_cancel(destination="this-never-existed") def test_ack(self): |