more dealing with macOS being slow
This commit is contained in:
parent
02ee5647a2
commit
ac9617cdd9
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ use std::time::{Duration, Instant, SystemTime};
|
|||
fn duration_sanity(diff: Duration) {
|
||||
// On my laptop, I observed times around 15-40ms. Add 10x lee-way both ways.
|
||||
assert!(diff.as_millis() > 1);
|
||||
assert!(diff.as_millis() < 500);
|
||||
assert!(diff.as_millis() < 1000); // macOS is very slow sometimes
|
||||
}
|
||||
|
||||
fn test_sleep() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue