diff --git a/tests/test_gunicorn_workers.py b/tests/test_gunicorn_workers.py index f7783cf..fd55d41 100644 --- a/tests/test_gunicorn_workers.py +++ b/tests/test_gunicorn_workers.py @@ -187,6 +187,8 @@ def gunicorn_process( bind, "--graceful-timeout", "1", + "--timeout", + "6", "--log-level", "debug", "--worker-class", @@ -324,3 +326,10 @@ def test_uvicorn_worker_boot_error( except AssertionError: # pragma: no cover time.sleep(5) assert process_has_terminated(process, expected_text=expected_text) + + +def test_uvicorn_worker_timeout(gunicorn_process: Process) -> None: + # WIP + time.sleep(10) + output_text = gunicorn_process.read_output() + assert "WORKER TIMEOUT" in output_text