Skip to content

Commit d5a1a7a

Browse files
Add more information to debug spurious oneshot::send_before_recv_timeout test
1 parent 75b9d89 commit d5a1a7a

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)