[Zope-Checkins] CVS: ZODB3/ZEO/tests - ConnectionTests.py:1.38

Tim Peters tim.one@comcast.net
Mon, 16 Jun 2003 15:52:40 -0400


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):