Skip to content

Commit 8374fac

Browse files
Remove timing assertion from oneshot::send_before_recv_timeout
1 parent 75b9d89 commit 8374fac

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

library/std/tests/sync/oneshot.rs

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

100-
assert!(start.elapsed() < timeout);
100+
// FIXME(#152648): There previously was a timing assertion here.
101+
// This was removed, because under load there's no guarantee that the main thread is
102+
// scheduled and run before `timeout` expires
101103
}
102104

103105
#[test]

0 commit comments

Comments
 (0)