summaryrefslogtreecommitdiff
path: root/python/tests_0-10/tx.py
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2007-09-12 14:49:12 +0000
committerGordon Sim <gsim@apache.org>2007-09-12 14:49:12 +0000
commit46b15e2c2f9e454fd7041f1e6ad723d093bee052 (patch)
tree34af4f367c3b5b46955ce070384a99adb742b562 /python/tests_0-10/tx.py
parent86255826a849d7d8ced73009274a5bee909a0923 (diff)
downloadqpid-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/tx.py')
-rw-r--r--python/tests_0-10/tx.py12
1 files changed, 6 insertions, 6 deletions
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)