aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/gunicorn_utils.py5
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()