[Zodb-checkins] CVS: ZODB3/ZEO/tests - ConnectionTests.py:1.22
Jeremy Hylton
jeremy at zope.com
Tue Apr 22 15:00:17 EDT 2003
Update of /cvs-repository/ZODB3/ZEO/tests
In directory cvs.zope.org:/tmp/cvs-serv5952/ZEO/tests
Modified Files:
ConnectionTests.py
Log Message:
Python 2.1 compatibility.
=== ZODB3/ZEO/tests/ConnectionTests.py 1.21 => 1.22 ===
--- ZODB3/ZEO/tests/ConnectionTests.py:1.21 Wed Apr 9 17:26:52 2003
+++ ZODB3/ZEO/tests/ConnectionTests.py Tue Apr 22 14:00:16 2003
@@ -438,6 +438,7 @@
self._storage = self.openClientStorage()
self._dostore()
+
# Test case for multiple storages participating in a single
# transaction. This is not really a connection test, but it needs
# about the same infrastructure (several storage servers).
@@ -491,8 +492,12 @@
get_transaction().commit()
# make sure the invalidation is received in the other client
- c1._storage.sync()
- self.assert_(r1._p_oid in c1._invalidated)
+ for i in range(10):
+ c1._storage.sync()
+ if c1._invalidated.has_key(r1._p_oid):
+ break
+ time.sleep(0.1)
+ self.assert_(c1._invalidated.has_key(r1._p_oid))
# force the invalidations to be applied...
c1.setLocalTransaction()
More information about the Zodb-checkins
mailing list