Skip to content

Commit 427f4f3

Browse files
authored
Rollup merge of rust-lang#152648 - JonathanBrouwer:debug_spurious, r=jhpratt
Add information to spurious `oneshot::send_before_recv_timeout` test This test regularly spuriously fails in CI, such as rust-lang#152632 (comment) We can just remove the assertion but I'd like to understand why, so I'm adding more information to the assert
2 parents ce0bf0b + d5a1a7a commit 427f4f3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

library/std/tests/sync/oneshot.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ fn send_before_recv_timeout() {
9797
_ => panic!("expected Ok(22)"),
9898
}
9999

100-
assert!(start.elapsed() < timeout);
100+
let elapsed = start.elapsed();
101+
assert!(elapsed < timeout, "expected {elapsed:?} < {timeout:?}");
101102
}
102103

103104
#[test]

0 commit comments

Comments
 (0)