Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
br3ndonland committed Jan 6, 2025
1 parent 319c07b commit 93a309f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_gunicorn_workers.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ def gunicorn_process(
bind,
"--graceful-timeout",
"1",
"--timeout",
"6",
"--log-level",
"debug",
"--worker-class",
Expand Down Expand Up @@ -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

0 comments on commit 93a309f

Please sign in to comment.