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(iroh): Make test_relay_datagram_queue less timing dependent (#3106)
## Description
<!-- A summary of what this pull request achieves and a rough list of
changes. -->
I've seen `test_relay_datagram_queue` fail on windows recently:
https://github.com/n0-computer/iroh/actions/runs/12669553316/job/35307313406
Given that
- when the test failed, it took 720ms,
- when the test succeeded, it took 150ms and 320ms,
- we've got a 100ms timeout on one of the futures, and
- the tokio scheduler (I think) doesn't optimize for average job time,
I'm not convinced there's a race condition.
So, instead I'm rewriting the test to be less timing-dependent. And less
confusing as well *and* have better logging.
## Change checklist
- [x] Self-review.
- [x] Documentation updates following the [style
guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text),
if relevant.
- [x] Tests if relevant.
- [x] All breaking changes documented.
0 commit comments