Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information