diff options
| author | Gordon Sim <gsim@apache.org> | 2007-09-12 14:49:12 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2007-09-12 14:49:12 +0000 |
| commit | 46b15e2c2f9e454fd7041f1e6ad723d093bee052 (patch) | |
| tree | 34af4f367c3b5b46955ce070384a99adb742b562 /python/tests_0-10/queue.py | |
| parent | 86255826a849d7d8ced73009274a5bee909a0923 (diff) | |
| download | qpid-python-46b15e2c2f9e454fd7041f1e6ad723d093bee052.tar.gz | |
In ClientChannel: Use subscribe and flush in place of get; use per-subscriber flow control for managing prefetches.
In brokers Session: set credit to 0 when subscription is created (modified python tests accordingly)
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@574979 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/tests_0-10/queue.py')
| -rw-r--r-- | python/tests_0-10/queue.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/python/tests_0-10/queue.py b/python/tests_0-10/queue.py index 05fa1aebc6..e3438116c8 100644 --- a/python/tests_0-10/queue.py +++ b/python/tests_0-10/queue.py @@ -49,7 +49,7 @@ class QueueTests(TestBase): #send a further message and consume it, ensuring that the other messages are really gone channel.message_transfer(destination="test-exchange", content=Content("four", properties={'routing_key':"key"})) - channel.message_subscribe(queue="test-queue", destination="tag") + self.subscribe(queue="test-queue", destination="tag") queue = self.client.queue("tag") msg = queue.get(timeout=1) self.assertEqual("four", msg.content.body) @@ -169,8 +169,8 @@ class QueueTests(TestBase): channel.queue_declare(queue="queue-1", exclusive="True") channel.queue_declare(queue="queue-2", exclusive="True") - channel.message_subscribe(queue="queue-1", destination="queue-1") - channel.message_subscribe(queue="queue-2", destination="queue-2") + self.subscribe(queue="queue-1", destination="queue-1") + self.subscribe(queue="queue-2", destination="queue-2") queue1 = self.client.queue("queue-1") queue2 = self.client.queue("queue-2") @@ -257,7 +257,7 @@ class QueueTests(TestBase): channel.channel_open() #empty queue: - channel.message_subscribe(destination="consumer_tag", queue="delete-me-2") + self.subscribe(channel, destination="consumer_tag", queue="delete-me-2") queue = self.client.queue("consumer_tag") msg = queue.get(timeout=1) self.assertEqual("message", msg.content.body) @@ -282,7 +282,7 @@ class QueueTests(TestBase): #create a queue and register a consumer: channel.queue_declare(queue="delete-me-3") channel.queue_declare(queue="delete-me-3", passive="True") - channel.message_subscribe(destination="consumer_tag", queue="delete-me-3") + self.subscribe(destination="consumer_tag", queue="delete-me-3") #need new channel now: channel2 = self.client.channel(2) |
