[Zodb-checkins] CVS: ZODB3/ZODB/tests - TransactionalUndoStorage.py:1.25

Jeremy Hylton jeremy@zope.com
Wed, 23 Oct 2002 15:06:37 -0400


Update of /cvs-repository/ZODB3/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv356/ZODB/tests

Modified Files:
	TransactionalUndoStorage.py 
Log Message:
Frontport changes made on 3.1 release branch just prior to release.


=== ZODB3/ZODB/tests/TransactionalUndoStorage.py 1.24 => 1.25 ===
--- ZODB3/ZODB/tests/TransactionalUndoStorage.py:1.24	Fri Oct 18 20:03:14 2002
+++ ZODB3/ZODB/tests/TransactionalUndoStorage.py	Wed Oct 23 15:06:36 2002
@@ -556,7 +556,7 @@
         orig = []
         for i in range(BATCHES):
             t = Transaction()
-            tid = p64(i+1)
+            tid = p64(i)
             s.tpc_begin(t, tid)
             for j in range(OBJECTS):
                 oid = s.new_oid()
@@ -602,7 +602,7 @@
             txn = iter[offset]
             offset += 1
             
-            tid = p64(i + 1)
+            tid = p64(i)
             eq(txn.tid, tid)
 
             L1 = [(rec.oid, rec.serial, rec.data_txn) for rec in txn]
@@ -621,7 +621,7 @@
             offset += 1
 
             # The undos are performed in reverse order.
-            otid = p64(BATCHES - i)
+            otid = p64(BATCHES - 1 - i)
             L1 = [(rec.oid, rec.data_txn) for rec in txn]
             L2 = [(oid, otid) for _tid, oid, revid in orig
                   if _tid == otid]