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 | 813499376e288db736428c2eb6b4634dde40a34c (patch) | |
| tree | 2384954ee541011507d9e5f72097a28d101bc489 /qpid/python/tests_0-10/tx.py | |
| parent | e5dcba2f7ee5ff71658532b7ac2f3ff47bf77db4 (diff) | |
| download | qpid-python-813499376e288db736428c2eb6b4634dde40a34c.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@574979 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python/tests_0-10/tx.py')
| -rw-r--r-- | qpid/python/tests_0-10/tx.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/qpid/python/tests_0-10/tx.py b/qpid/python/tests_0-10/tx.py index 7c50de4ee2..2415a88fb2 100644 --- a/qpid/python/tests_0-10/tx.py +++ b/qpid/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) |
