diff options
author | Carl C. Trieloff <cctrieloff@apache.org> | 2007-07-17 20:28:47 +0000 |
---|---|---|
committer | Carl C. Trieloff <cctrieloff@apache.org> | 2007-07-17 20:28:47 +0000 |
commit | 55b232f3d2448dab91c926ba171cc5fd9b5a04c5 (patch) | |
tree | 2dd467dc71e8bbab238aa0c893bcd7563605e768 | |
parent | ce9743f8f1640d42af5fe7aaa8fe7e3ca82a914d (diff) | |
download | qpid-python-55b232f3d2448dab91c926ba171cc5fd9b5a04c5.tar.gz |
cancel test assumes threading model -- added sleep, once we move to 0-10 should wait
for publish ack
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@557047 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | python/tests_0-9/basic.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/tests_0-9/basic.py b/python/tests_0-9/basic.py index 0ad06e10a3..ad4cb29c71 100644 --- a/python/tests_0-9/basic.py +++ b/python/tests_0-9/basic.py @@ -125,12 +125,12 @@ class BasicTests(TestBase): channel.queue_declare(queue="test-queue-4", exclusive=True) channel.basic_consume(consumer_tag="my-consumer", queue="test-queue-4") channel.basic_publish(routing_key="test-queue-4", content=Content("One")) - + import time; time.sleep(5) # this should be replace waiting for confirm of publish once we have message class #cancel should stop messages being delivered channel.basic_cancel(consumer_tag="my-consumer") channel.basic_publish(routing_key="test-queue-4", content=Content("Two")) myqueue = self.client.queue("my-consumer") - msg = myqueue.get(timeout=1) + msg = myqueue.get(timeout=5) self.assertEqual("One", msg.content.body) try: msg = myqueue.get(timeout=1) |