Commit 0392f27b authored by Stéphane Blondon's avatar Stéphane Blondon Committed by sblondon

Fix test to error exit value when no servers connexion

parent 6d3f8c09
...@@ -169,6 +169,7 @@ def _main(args=None, prog=None): ...@@ -169,6 +169,7 @@ def _main(args=None, prog=None):
if not server_found: if not server_found:
error("Cannot connect to any of the configured ZEO servers.") error("Cannot connect to any of the configured ZEO servers.")
def main(*args): def main(*args):
root_logger = logging.getLogger() root_logger = logging.getLogger()
old_level = root_logger.getEffectiveLevel() old_level = root_logger.getEffectiveLevel()
......
...@@ -202,6 +202,9 @@ seconds of waiting for a connect. ...@@ -202,6 +202,9 @@ seconds of waiting for a connect.
sleep(1) sleep(1)
Couldn't connect to: (('host1', 8100), '2') Couldn't connect to: (('host1', 8100), '2')
close() close()
Error:
Cannot connect to any of the configured ZEO servers.
Exited 1
>>> ClientStorage.connect_wait = 0 >>> ClientStorage.connect_wait = 0
......
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