[Zodb-checkins] CVS: ZODB3/ZEO/tests - ConnectionTests.py:1.4.2.4
Jeremy Hylton
jeremy at zope.com
Tue Apr 29 18:40:27 EDT 2003
Update of /cvs-repository/ZODB3/ZEO/tests
In directory cvs.zope.org:/tmp/cvs-serv5133/ZEO/tests
Modified Files:
Tag: ZODB3-3_1-branch
ConnectionTests.py
Log Message:
Backport assorted ZEO fixes.
Make isReadOnly() report the right answer with a read-only fallback
connection.
Don't allow client to read cache data during verification.
=== ZODB3/ZEO/tests/ConnectionTests.py 1.4.2.3 => 1.4.2.4 ===
--- ZODB3/ZEO/tests/ConnectionTests.py:1.4.2.3 Mon Jan 20 16:54:28 2003
+++ ZODB3/ZEO/tests/ConnectionTests.py Tue Apr 29 17:39:56 2003
@@ -238,6 +238,7 @@
self.startServer(create=0, index=0, ro_svr=1)
# Start a read-only-fallback client
self._storage = self.openClientStorage(wait=1, read_only_fallback=1)
+ self.assert_(self._storage.isReadOnly())
# Stores should fail here
self.assertRaises(ReadOnlyError, self._dostore)
@@ -501,7 +502,7 @@
"Error after server restart; retrying.",
error=sys.exc_info())
get_transaction().abort()
- time.sleep(0.1) # XXX how long to sleep
+ time.sleep(0.1)
# 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
More information about the Zodb-checkins
mailing list