uvicorn/tests/supervisors
Marcelo Trylesinski 0779f7f8a4
Poll for readiness in test_multiprocess_health_check and run_server (#2816)
* Poll for readiness in `test_multiprocess_health_check` and `run_server`

Apply the same polling pattern to `test_multiprocess_health_check` — wait
for all processes to be alive instead of a fixed 1s sleep.

In `run_server`, wait for `server.started` instead of a fixed 0.1s sleep
to avoid connection races on slow setups (e.g. free-threaded Python 3.14).

* Avoid uncovered branch in health check polling loop

* Add pragma: no cover to health check polling loop body
2026-02-15 18:23:26 +00:00
..
__init__.py New multiprocess manager (#2183) 2024-05-28 00:59:03 -06:00
test_multiprocess.py Poll for readiness in test_multiprocess_health_check and run_server (#2816) 2026-02-15 18:23:26 +00:00
test_reload.py Drop Python 3.9 (#2772) 2025-12-21 14:56:01 +01:00
test_signal.py test(signal): add sleep to ensure shutdown completion (#2427) 2024-08-13 02:56:31 -06:00