Auto merge of #3321 - RalfJung:macos-time, r=RalfJung
more dealing with macOS CI runners being slow 500ms seems to still sometimes not enough... so let's double it...
This commit is contained in:
commit
8d74063672
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