summaryrefslogtreecommitdiff
path: root/python/tests_0-10/tx.py
diff options
context:
space:
mode:
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 b499c2d1f9..4c2f75d35e 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_consume(queue="tx-commit-a", destination="qa", no_ack=False)
+ channel.message_subscribe(queue="tx-commit-a", destination="qa", confirm_mode=1)
queue_a = self.client.queue("qa")
- channel.message_consume(queue="tx-commit-b", destination="qb", no_ack=False)
+ channel.message_subscribe(queue="tx-commit-b", destination="qb", confirm_mode=1)
queue_b = self.client.queue("qb")
- channel.message_consume(queue="tx-commit-c", destination="qc", no_ack=False)
+ channel.message_subscribe(queue="tx-commit-c", destination="qc", confirm_mode=1)
queue_c = self.client.queue("qc")
#check results
@@ -174,7 +174,7 @@ class TxTests(TestBase):
channel.tx_select()
#consume and ack messages
- channel.message_consume(queue=name_a, destination="sub_a", no_ack=False)
+ channel.message_subscribe(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)
@@ -182,13 +182,13 @@ class TxTests(TestBase):
msg.complete()
- channel.message_consume(queue=name_b, destination="sub_b", no_ack=False)
+ channel.message_subscribe(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.body)
msg.complete()
- sub_c = channel.message_consume(queue=name_c, destination="sub_c", no_ack=False)
+ sub_c = channel.message_subscribe(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.body)