[Zodb-checkins] CVS: ZODB3/ZEO/tests - ConnectionTests.py:1.16
Jeremy Hylton
jeremy@zope.com
Wed, 15 Jan 2003 11:53:47 -0500
Update of /cvs-repository/ZODB3/ZEO/tests
In directory cvs.zope.org:/tmp/cvs-serv31616
Modified Files:
ConnectionTests.py
Log Message:
Restore the sleep() in checkReconnectSwitch().
If the client isn't connected at all, sync() returns quickly and the
test fails because it doesn't wait long enough for the client.
=== ZODB3/ZEO/tests/ConnectionTests.py 1.15 => 1.16 ===
--- ZODB3/ZEO/tests/ConnectionTests.py:1.15 Tue Jan 14 14:08:34 2003
+++ ZODB3/ZEO/tests/ConnectionTests.py Wed Jan 15 11:53:42 2003
@@ -52,7 +52,6 @@
def invalidate(self, *args, **kwargs):
pass
-
class CommonSetupTearDown(StorageTestBase):
"""Common boilerplate"""
@@ -568,6 +567,10 @@
self._dostore()
break
except (Disconnected, ReadOnlyError):
+ # If the client isn't connected at all, sync() returns
+ # quickly and the test fails because it doesn't wait
+ # long enough for the client.
+ time.sleep(0.1)
self._storage.sync()
else:
self.fail("Couldn't store after starting a read-write server")