[Zodb-checkins] SVN: ZODB/trunk/src/ZEO/tests/ConnectionTests.py A couple of tests made timing assumptions that sometimes weren't
Jim Fulton
jim at zope.com
Fri Dec 19 11:30:10 EST 2008
Log message for revision 94201:
A couple of tests made timing assumptions that sometimes weren't
satisfied. Added waits to make the assumtions more explicit and to
try to make sure they were satisfied.
Changed:
U ZODB/trunk/src/ZEO/tests/ConnectionTests.py
-=-
Modified: ZODB/trunk/src/ZEO/tests/ConnectionTests.py
===================================================================
--- ZODB/trunk/src/ZEO/tests/ConnectionTests.py 2008-12-19 16:25:40 UTC (rev 94200)
+++ ZODB/trunk/src/ZEO/tests/ConnectionTests.py 2008-12-19 16:30:09 UTC (rev 94201)
@@ -639,7 +639,10 @@
# message is generated
revid = self._dostore(oid)
revid = self._dostore(oid, revid)
-
+ forker.wait_until(
+ lambda :
+ perstorage.lastTransaction() == self._storage.lastTransaction()
+ )
perstorage.load(oid, '')
perstorage.close()
@@ -859,12 +862,13 @@
# do two storages of the object to make sure an invalidation
# message is generated
revid = self._dostore(oid)
- self._dostore(oid, revid)
-
+ revid = self._dostore(oid, revid)
+ forker.wait_until(
+ lambda :
+ perstorage.lastTransaction() == self._storage.lastTransaction()
+ )
perstorage.load(oid, '')
-
self.shutdownServer()
-
self.pollDown()
self._storage.verify_result = None
perstorage.verify_result = None
More information about the Zodb-checkins
mailing list