Commit 9783280c authored by Tim Peters's avatar Tim Peters

checkMultipleServers(): This didn't actually check anything. Check that

it actually manages to do a commit on the second server.
parent 9a314173
...@@ -228,12 +228,15 @@ class ConnectionTests(CommonSetupTearDown): ...@@ -228,12 +228,15 @@ class ConnectionTests(CommonSetupTearDown):
# If we can still store after shutting down one of the # If we can still store after shutting down one of the
# servers, we must be reconnecting to the other server. # servers, we must be reconnecting to the other server.
did_a_store = 0
for i in range(10): for i in range(10):
try: try:
self._dostore() self._dostore()
did_a_store = 1
break break
except ClientDisconnected: except ClientDisconnected:
time.sleep(0.5) time.sleep(0.5)
self.assert_(did_a_store)
self._storage.close() self._storage.close()
def checkReadOnlyClient(self): def checkReadOnlyClient(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment