From 46b15e2c2f9e454fd7041f1e6ad723d093bee052 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Wed, 12 Sep 2007 14:49:12 +0000 Subject: 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 --- python/tests_0-10/tx.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'python/tests_0-10/tx.py') diff --git a/python/tests_0-10/tx.py b/python/tests_0-10/tx.py index 7c50de4ee2..2415a88fb2 100644 --- a/python/tests_0-10/tx.py +++ b/python/tests_0-10/tx.py @@ -41,13 +41,13 @@ class TxTests(TestBase): channel = self.channel channel.tx_select() - channel.message_subscribe(queue="tx-commit-a", destination="qa", confirm_mode=1) + self.subscribe(channel, queue="tx-commit-a", destination="qa", confirm_mode=1) queue_a = self.client.queue("qa") - channel.message_subscribe(queue="tx-commit-b", destination="qb", confirm_mode=1) + self.subscribe(channel, queue="tx-commit-b", destination="qb", confirm_mode=1) queue_b = self.client.queue("qb") - channel.message_subscribe(queue="tx-commit-c", destination="qc", confirm_mode=1) + self.subscribe(channel, queue="tx-commit-c", destination="qc", confirm_mode=1) queue_c = self.client.queue("qc") #check results @@ -176,7 +176,7 @@ class TxTests(TestBase): channel.tx_select() #consume and ack messages - channel.message_subscribe(queue=name_a, destination="sub_a", confirm_mode=1) + self.subscribe(channel, queue=name_a, destination="sub_a", confirm_mode=1) queue_a = self.client.queue("sub_a") for i in range(1, 5): msg = queue_a.get(timeout=1) @@ -184,13 +184,13 @@ class TxTests(TestBase): msg.complete() - channel.message_subscribe(queue=name_b, destination="sub_b", confirm_mode=1) + self.subscribe(channel, queue=name_b, destination="sub_b", confirm_mode=1) queue_b = self.client.queue("sub_b") msg = queue_b.get(timeout=1) self.assertEqual("Message 6", msg.content.body) msg.complete() - sub_c = channel.message_subscribe(queue=name_c, destination="sub_c", confirm_mode=1) + sub_c = self.subscribe(channel, queue=name_c, destination="sub_c", confirm_mode=1) queue_c = self.client.queue("sub_c") msg = queue_c.get(timeout=1) self.assertEqual("Message 7", msg.content.body) -- cgit v1.2.1