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(cluster): replace fixed sleeps with readiness polling and fix SWIM probe test
Replace fixed tokio::time::sleep calls in tests with bounded polling
loops that break as soon as the expected condition is met. This makes
tests deterministic under heavy parallel load (500+ unit tests sharing
the same CPU pool) rather than depending on timing assumptions.
In the SWIM indirect_ack_saves_target test, remove start_paused — paused
time auto-advances timeouts before channel-woken tasks are polled, making
the indirect path race its own timeout. With real time the 40 ms probe
window is ample for in-memory delivery. Add a recv loop on the local
endpoint to resolve inflight probes when Acks arrive, and handle both
Ping and PingReq in the helper so the test is correct regardless of
which node the scheduler picks as the direct target.
In the cluster harness, replace the 200 ms sleep before peers join with
a topology-readiness poll, and serialise node 2 joining before node 3 to
avoid overwhelming the bootstrap leader's join handler under load.
Extend the descriptor lease planner wait budget from 3 s to 10 s to
match the extended election timeout range used in tests.
0 commit comments