Skip to content

Commit

Permalink
ouch
Browse files Browse the repository at this point in the history
  • Loading branch information
DebugSteven committed Jan 23, 2023
1 parent de3a0e3 commit bdbf151
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/pass-dep/tokio/sleep.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@ async fn main() {
// It takes 96 millisecond to sleep for 1 millisecond
// It takes 1025 millisecond to sleep for 1 second
let time_elapsed = &start.elapsed().as_millis();
// If we're within 50 milliseconds that's okay
assert!((1000..1050).contains(time_elapsed), "{}", time_elapsed);
assert!((1000..2000).contains(time_elapsed), "{}", time_elapsed);
}

0 comments on commit bdbf151

Please sign in to comment.