summaryrefslogtreecommitdiff
path: root/qpid/python/tests_0-10/dtx.py
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2008-06-05 17:51:34 +0000
committerGordon Sim <gsim@apache.org>2008-06-05 17:51:34 +0000
commit57287a1db8500d0a308e2eb2be39c3e4262e81e2 (patch)
tree7c9716319657c0ca99d4cfba989ee6cf9940fd48 /qpid/python/tests_0-10/dtx.py
parent09e457f509458aab34a183fcb50efd4ab8540d9c (diff)
downloadqpid-python-57287a1db8500d0a308e2eb2be39c3e4262e81e2.tar.gz
cleanup old irrelevant tests (from 0-10 preview functions)
fix dtx.recover test git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@663675 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python/tests_0-10/dtx.py')
-rw-r--r--qpid/python/tests_0-10/dtx.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/qpid/python/tests_0-10/dtx.py b/qpid/python/tests_0-10/dtx.py
index 796152794f..25c2defd3b 100644
--- a/qpid/python/tests_0-10/dtx.py
+++ b/qpid/python/tests_0-10/dtx.py
@@ -653,22 +653,19 @@ class DtxTests(TestBase010):
session.dtx_rollback(xid=tx)
xids = session.dtx_recover().in_doubt
- print "xids=%s" % xids
#rollback the prepared transactions returned by recover
for x in xids:
session.dtx_rollback(xid=x)
#validate against the expected list of prepared transactions
- actual = set(xids)
- expected = set(prepared)
+ actual = set([x.global_id for x in xids]) #TODO: come up with nicer way to test these
+ expected = set([x.global_id for x in prepared])
intersection = actual.intersection(expected)
if intersection != expected:
missing = expected.difference(actual)
extra = actual.difference(expected)
- for x in missing:
- session.dtx_rollback(xid=x)
self.fail("Recovered xids not as expected. missing: %s; extra: %s" % (missing, extra))
def test_bad_resume(self):