pub fn set_idle_grace_window_for_test(d: Duration)
Override the idle grace window for tests.
Call once, before any connection that spawns the sweep task. The value is process-global (a OnceLock); subsequent calls are no-ops.
OnceLock