mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-22 11:53:44 +00:00
print how long the measured sleep time actually was on test failure
This commit is contained in:
parent
1db8540fe6
commit
64d4fd5ab7
@ -203,7 +203,8 @@ fn park_timeout() {
|
||||
// know Miri's timed synchronization primitives do not do that.
|
||||
// We allow much longer sleeps as well since the macOS GHA runners seem very oversubscribed
|
||||
// and sometimes just pause for 1 second or more.
|
||||
assert!((200..2000).contains(&start.elapsed().as_millis()));
|
||||
let elapsed = start.elapsed();
|
||||
assert!((200..2000).contains(&elapsed.as_millis()), "bad sleep time: {:?}", elapsed);
|
||||
}
|
||||
|
||||
fn park_unpark() {
|
||||
@ -222,7 +223,8 @@ fn park_unpark() {
|
||||
// know Miri's timed synchronization primitives do not do that.
|
||||
// We allow much longer sleeps as well since the macOS GHA runners seem very oversubscribed
|
||||
// and sometimes just pause for 1 second or more.
|
||||
assert!((200..2000).contains(&start.elapsed().as_millis()));
|
||||
let elapsed = start.elapsed();
|
||||
assert!((200..2000).contains(&elapsed.as_millis()), "bad sleep time: {:?}", elapsed);
|
||||
|
||||
t2.join().unwrap();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user