[Zodb-checkins] CVS: ZODB3/ZEO/tests - ConnectionTests.py:1.38

Tim Peters tim.one at comcast.net
Mon Jun 16 16:52:40 EDT 2003


Update of /cvs-repository/ZODB3/ZEO/tests
In directory cvs.zope.org:/tmp/cvs-serv7992/ZEO/tests

Modified Files:
	ConnectionTests.py 
Log Message:
checkMultipleServers():  This didn't actually check anything.  Check that
it actually manages to do a commit on the second server.


=== ZODB3/ZEO/tests/ConnectionTests.py 1.37 => 1.38 ===
--- ZODB3/ZEO/tests/ConnectionTests.py:1.37	Mon Jun 16 15:45:38 2003
+++ ZODB3/ZEO/tests/ConnectionTests.py	Mon Jun 16 15:52:39 2003
@@ -228,12 +228,15 @@
         # If we can still store after shutting down one of the
         # servers, we must be reconnecting to the other server.
 
+        did_a_store = 0
         for i in range(10):
             try:
                 self._dostore()
+                did_a_store = 1
                 break
             except ClientDisconnected:
                 time.sleep(0.5)
+        self.assert_(did_a_store)
         self._storage.close()
 
     def checkReadOnlyClient(self):




More information about the Zodb-checkins mailing list