Commit 6a72f673 authored by Łukasz Nowak's avatar Łukasz Nowak

caddy-frontend/test: Assure stopping all processes

parent 08c3cda3
...@@ -524,10 +524,10 @@ class SlaveHttpFrontendTestCase(HttpFrontendTestCase): ...@@ -524,10 +524,10 @@ class SlaveHttpFrontendTestCase(HttpFrontendTestCase):
def stopServerProcess(cls): def stopServerProcess(cls):
if getattr(cls, 'test_server_certificate_file', None) is not None: if getattr(cls, 'test_server_certificate_file', None) is not None:
os.unlink(cls.test_server_certificate_file.name) os.unlink(cls.test_server_certificate_file.name)
if getattr(cls, 'server_process', None) is None: for server in ['server_process', 'server_https_process']:
return process = getattr(cls, server, None)
cls.server_process.terminate() if process is not None:
cls.server_https_process.terminate() process.terminate()
@classmethod @classmethod
def setUpSlaves(cls): def setUpSlaves(cls):
......
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