mirror of
https://github.com/block/buzz.git
synced 2026-10-31 14:31:02 +00:00
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>