[Zodb-checkins] CVS: ZODB3/ZEO/tests - ConnectionTests.py:1.23
Jeremy Hylton
jeremy at zope.com
Tue Apr 29 16:42:46 EDT 2003
Update of /cvs-repository/ZODB3/ZEO/tests
In directory cvs.zope.org:/tmp/cvs-serv20971/tests
Modified Files:
ConnectionTests.py
Log Message:
Drive asyncore during cache verification in synchronous mode.
If asyncore is not running in a separate thread, the client needs to
call poll() to perform the IO necessary for cache verification to
finish.
This allows us to eliminate several calls to sync() in the test suite.
=== ZODB3/ZEO/tests/ConnectionTests.py 1.22 => 1.23 ===
--- ZODB3/ZEO/tests/ConnectionTests.py:1.22 Tue Apr 22 14:00:16 2003
+++ ZODB3/ZEO/tests/ConnectionTests.py Tue Apr 29 15:42:45 2003
@@ -205,7 +205,6 @@
self._dostore()
break
except ClientDisconnected:
- self._storage.sync()
time.sleep(0.5)
def checkReadOnlyClient(self):
@@ -392,7 +391,6 @@
"Error after server restart; retrying.",
error=sys.exc_info())
get_transaction().abort()
- self._storage.sync()
# XXX This is a bloody pain. We're placing a heavy burden
# on users to catch a plethora of exceptions in order to
# write robust code. Need to think about implementing
@@ -645,7 +643,6 @@
# 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")
More information about the Zodb-checkins
mailing list