Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
outbound: replace
sleep
s in test with yield_now
These don't actually *need* to advance the mock clock --- they are just intended to make the current task yield so the background task can observe updates. Replacing them with `yield_now` expresses intent more accurately. Also, this seems to fix the test failing after upgrading to tokio 1.6.2+, presumably related to tokio-rs/tokio#3852. I'm still trying to figure out _why_ exactly this fixes the test (and why it breaks in the first place), but at least this PR will get CI passing on Tokio 1.7.0. See here for details: #1079 (comment)
- Loading branch information