[Zope-Checkins] CVS: ZODB3/ZODB/tests - VersionStorage.py:1.17.2.4
Tim Peters
tim.one at comcast.net
Thu Sep 11 15:42:38 EDT 2003
Update of /cvs-repository/ZODB3/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv32021/ZODB/tests
Modified Files:
Tag: Zope-2_6-branch
VersionStorage.py
Log Message:
checkPackVersionReachable(): I think it's the 500th time we've added a
necessary snooze() to this test (else it fails intermittently on Windows).
=== ZODB3/ZODB/tests/VersionStorage.py 1.17.2.3 => 1.17.2.4 ===
--- ZODB3/ZODB/tests/VersionStorage.py:1.17.2.3 Wed May 14 10:55:43 2003
+++ ZODB3/ZODB/tests/VersionStorage.py Thu Sep 11 14:42:37 2003
@@ -488,10 +488,11 @@
root["d"] = MinPO("d")
get_transaction().commit()
+ snooze()
self._storage.pack(time.time(), referencesf)
cn.sync()
-
+
# make sure all the non-version data is there
for name, obj in root.items():
self.assertEqual(name, obj.value)
@@ -514,16 +515,15 @@
t = time.time()
snooze()
-
+
L = db.undoInfo()
db.undo(L[0]["id"])
txn = get_transaction()
txn.note("undo abort")
txn.commit()
-
+
self._storage.pack(t, referencesf)
cn2 = db.open(version="b")
rt2 = cn2.root()
self.assertEqual(rt2["b"].value.value, "still version")
-
More information about the Zope-Checkins
mailing list