We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
oneshot::send_before_recv_timeout
1 parent 75b9d89 commit cbe63ddCopy full SHA for cbe63dd
1 file changed
library/std/tests/sync/oneshot.rs
@@ -84,6 +84,7 @@ fn send_never_deadline() {
84
}
85
86
#[test]
87
+#[ignore = "Inherently flaky and has caused several CI failures"]
88
fn send_before_recv_timeout() {
89
let (sender, receiver) = oneshot::channel();
90
@@ -97,7 +98,10 @@ fn send_before_recv_timeout() {
97
98
_ => panic!("expected Ok(22)"),
99
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:?}");
105
106
107
0 commit comments