Skip to content

Pin the clock in the loss-time test - #372

Merged
benoitc merged 1 commit into
mainfrom
fix/loss-test-pinned-times
Oct 3, 2026
Merged

benoitc merged 1 commit into
mainfrom
fix/loss-test-pinned-times

Conversation

@benoitc

@benoitc benoitc commented Oct 3, 2026

Copy link
Copy Markdown
Owner

quic_loss_tests:get_loss_time_with_packets_test sampled the clock when sending and again when acknowledging. On a stalled macOS runner the loss delay passed in between, the packet was declared lost outright, and the test failed looking for a deadline that no longer existed (seen once on #371, passed on rerun).

The test now sends and acknowledges at fixed times through on_packet_sent/7 and asserts the exact deadline, the send time plus 9/8 of the first RTT sample.

The test sampled the clock when sending and again when acknowledging, so
a stalled runner could let the loss delay pass in between and declare
the packet lost before the deadline was looked for. It now uses fixed
times and asserts the exact deadline.
@benoitc
benoitc merged commit ca9504e into main Oct 3, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant