[Zope-Checkins] CVS: ZODB3/ZODB/tests - TransactionalUndoStorage.py:1.22.2.2

Jeremy Hylton jeremy@zope.com
Thu, 24 Oct 2002 12:28:08 -0400


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

Modified Files:
      Tag: ZODB3-3_1-branch
	TransactionalUndoStorage.py 
Log Message:
Reapply change lost when branch/trunk were synced.


=== ZODB3/ZODB/tests/TransactionalUndoStorage.py 1.22.2.1 => 1.22.2.2 ===
--- ZODB3/ZODB/tests/TransactionalUndoStorage.py:1.22.2.1	Fri Oct 18 15:39:58 2002
+++ ZODB3/ZODB/tests/TransactionalUndoStorage.py	Thu Oct 24 12:28:08 2002
@@ -556,7 +556,7 @@
         orig = []
         for i in range(BATCHES):
             t = Transaction()
-            tid = p64(i)
+            tid = p64(i + 1)
             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)
+            tid = p64(i + 1)
             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 - 1 - i)
+            otid = p64(BATCHES - i)
             L1 = [(rec.oid, rec.data_txn) for rec in txn]
             L2 = [(oid, otid) for _tid, oid, revid in orig
                   if _tid == otid]