Skip to content

Commit cbe63dd

Browse files
Ignore oneshot::send_before_recv_timeout
1 parent 75b9d89 commit cbe63dd

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

library/std/tests/sync/oneshot.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ fn send_never_deadline() {
8484
}
8585

8686
#[test]
87+
#[ignore = "Inherently flaky and has caused several CI failures"]
8788
fn send_before_recv_timeout() {
8889
let (sender, receiver) = oneshot::channel();
8990

@@ -97,7 +98,10 @@ fn send_before_recv_timeout() {
9798
_ => panic!("expected Ok(22)"),
9899
}
99100

100-
assert!(start.elapsed() < timeout);
101+
// FIXME(#152648): Under load, there's no guarantee that the main thread is
102+
// scheduled and run before this timeout expires.
103+
let elapsed = start.elapsed();
104+
assert!(elapsed < timeout, "expected {elapsed:?} < {timeout:?}");
101105
}
102106

103107
#[test]

0 commit comments

Comments
 (0)