Files
buzz/crates
Duncan e5fb508b1b test(acp): fix bounded-exit test — small-step advance for cross-task channel interleaving
Under start_paused, a single large tokio::time::advance() moves the clock
but cannot flush cross-task channel interactions. The Uncertain path requires
test_pair_silent to drop ack_tx (channel-driven) so ack_rx resolves before
the 2s backoff sleep fires. A single yield_now() after a 34s advance was
insufficient for this ping-pong; replace with a 500ms-step polling loop that
gives both tasks a chance to run on each advance tick, matching the pattern
already established in ordinary_timeout_publishes_resolved_edit.

Also corrects the mutation-proof comment: the test constructs its own
delivery_deadline from a 4s window — the production RESOLVED_DELIVERY_WINDOW_SECS
constant is not involved; the real mutation is removing the deadline gate entirely.

Co-authored-by: Will Pfleger <pfleger.will@gmail.com>
Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
2026-09-01 15:55:01 -04:00
..