Skip to content

Commit 092c4eb

Browse files
Adjust tests to validate the return value of tpc_recovers().
1 parent 5b15607 commit 092c4eb

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tests/test_4400_tpc.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -214,15 +214,13 @@ def test_4407(self):
214214
self.cursor.execute("select * from DBA_PENDING_TRANSACTIONS")
215215
self.assertEqual(self.cursor.fetchall(), recovers)
216216

217-
for format_id, txn, branch in recovers:
218-
if format_id % 2 == 0:
219-
xid = self.conn.xid(format_id, txn, branch)
217+
for xid in recovers:
218+
if xid.format_id % 2 == 0:
220219
self.conn.tpc_commit(xid)
221220
recovers = self.conn.tpc_recover()
222221
self.assertEqual(len(recovers), n_xids // 2)
223222

224-
for format_id, txn, branch in recovers:
225-
xid = self.conn.xid(format_id, txn, branch)
223+
for xid in recovers:
226224
self.conn.tpc_rollback(xid)
227225
recovers = self.conn.tpc_recover()
228226
self.assertEqual(len(recovers), 0)

0 commit comments

Comments
 (0)