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/dtx.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/dtx.py')
| -rw-r--r-- | qpid/python/tests_0-10/dtx.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qpid/python/tests_0-10/dtx.py b/qpid/python/tests_0-10/dtx.py index 29a4d3bf0d..b5645cb596 100644 --- a/qpid/python/tests_0-10/dtx.py +++ b/qpid/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") |
