diff options
author | 2023-06-23 10:42:38 +0000 | |
---|---|---|
committer | 2023-06-23 10:42:38 +0000 | |
commit | 3a10f404064eb520d5f6ac882dc5e9429654ef8b (patch) | |
tree | 135c608a44e82e0efa8270592bfce33fd9806269 | |
parent | Attempt to fix flaky integration tests (diff) |
Kill process after waiting for it to terminate
-rw-r--r-- | tests/gunicorn_utils.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/gunicorn_utils.py b/tests/gunicorn_utils.py index 54a51df..7af0767 100644 --- a/tests/gunicorn_utils.py +++ b/tests/gunicorn_utils.py @@ -92,6 +92,7 @@ def run_gunicorn(config_path: str = "config/gunicorn.conf.py", **kwargs) -> Iter proc.terminate() # Actually wait for the process to finish. There doesn't seem to be a - # reliable way of checking if the timeout was reached or this ended normally, - # but if the timeout is reached it will probably error later anyway. + # reliable way of checking if process ended or the timeout was reached, + # so kill the process afterwards to be sure. proc.join(timeout=10) + proc.kill() |