Commit 79016f8f authored by dieter's avatar dieter

try to fix race condition in test `runzeo_without_configfile`

parent ecad3244
...@@ -258,6 +258,9 @@ class ZEOServer(object): ...@@ -258,6 +258,9 @@ class ZEOServer(object):
def close_server(self): def close_server(self):
if self.server is not None: if self.server is not None:
self.server.close() self.server.close()
if self.options.testing_exit_immediately:
# usually, this happens automatically - but not for testing
self.server.acceptor.event_loop.close()
def handle_sigterm(self): def handle_sigterm(self):
log("terminated by SIGTERM") log("terminated by SIGTERM")
......
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