Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Lok <[email protected]>
  • Loading branch information
andylokandy committed Oct 28, 2023
1 parent 73bf531 commit 5b3a28f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions minitrace/tests/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -650,10 +650,7 @@ fn test_elapsed() {

std::thread::sleep(Duration::from_millis(50));

let elapsed = root.elapsed().unwrap();

assert!(elapsed >= Duration::from_millis(50));
assert!(elapsed < Duration::from_millis(65), "{:?}", elapsed);
assert!(root.elapsed().unwrap() >= Duration::from_millis(50));
}

minitrace::flush();
Expand Down

0 comments on commit 5b3a28f

Please sign in to comment.