You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test: shave loopback timing overhead from remaining slow tests
Issue #1707 listed 20 tests over 0.5s. The fixes here cut the
ones that aren't pinning RFC behavior:
- Extract the 150-250ms probe collision-avoidance delay in
Zeroconf._async_check_service to _PROBE_RANDOM_DELAY_INTERVAL
so the existing quick_timing fixture can shrink it on
loopback. Drops 150-250ms per register_service call.
- Add quick_request_timing to test_get_info_partial,
test_integration_with_listener_class, and
test_service_info_async_request — get_service_info calls
no longer pay the 200ms _LISTENER_TIME + 20-120ms jitter.
- Tighten the deliberate forced-timeout in
test_service_info_async_request from 1500ms to 300ms now
that quick_request_timing brings the first QM into the
window in <20ms.
- Patch _TASK_AWAIT_TIMEOUT in test_shutdown_loop so the
asyncio.wait on the never-completing _still_running() task
returns at 50ms instead of the default 1s.
Tests that pin RFC 6762 timing (response aggregation,
duplicate-question suppression, TC-deferral, 4-retry budget)
are intentionally left alone — their runtime is the assertion.
0 commit comments