1
Fork 0

more dealing with macOS being slow

This commit is contained in:
Ralf Jung 2024-02-25 14:34:24 +01:00
parent 02ee5647a2
commit ac9617cdd9

View file

@ -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() {