summaryrefslogtreecommitdiff
path: root/python/tests_0-10/dtx.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/dtx.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/dtx.py')
-rw-r--r--python/tests_0-10/dtx.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/tests_0-10/dtx.py b/python/tests_0-10/dtx.py
index 29a4d3bf0d..b5645cb596 100644
--- a/python/tests_0-10/dtx.py
+++ b/python/tests_0-10/dtx.py
@@ -366,7 +366,7 @@ class DtxTests(TestBase):
#check the second message is available, but not the first
self.assertMessageCount(1, "tx-queue")
- channel.message_subscribe(queue="tx-queue", destination="results", confirm_mode=1)
+ self.subscribe(channel, queue="tx-queue", destination="results", confirm_mode=1)
msg = self.client.queue("results").get(timeout=1)
self.assertEqual("two", msg.content['message_id'])
channel.message_cancel(destination="results")
@@ -602,5 +602,7 @@ class DtxTests(TestBase):
def assertMessageId(self, expected, queue):
self.channel.message_subscribe(queue=queue, destination="results")
+ self.channel.message_flow(destination="results", unit=0, value=1)
+ self.channel.message_flow(destination="results", unit=1, value=0xFFFFFFFF)
self.assertEqual(expected, self.client.queue("results").get(timeout=1).content['message_id'])
self.channel.message_cancel(destination="results")