aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
Diffstat (limited to 'crates')
-rw-r--r--crates/rust-analyzer/tests/heavy_tests/support.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/rust-analyzer/tests/heavy_tests/support.rs b/crates/rust-analyzer/tests/heavy_tests/support.rs
index e152264d3..f242c8165 100644
--- a/crates/rust-analyzer/tests/heavy_tests/support.rs
+++ b/crates/rust-analyzer/tests/heavy_tests/support.rs
@@ -253,7 +253,8 @@ impl Drop for Server {
253} 253}
254 254
255fn recv_timeout(receiver: &Receiver<Message>) -> Option<Message> { 255fn recv_timeout(receiver: &Receiver<Message>) -> Option<Message> {
256 let timeout = Duration::from_secs(120); 256 let timeout =
257 if cfg!(target_os = "macos") { Duration::from_secs(300) } else { Duration::from_secs(120) };
257 select! { 258 select! {
258 recv(receiver) -> msg => msg.ok(), 259 recv(receiver) -> msg => msg.ok(),
259 recv(after(timeout)) -> _ => panic!("timed out"), 260 recv(after(timeout)) -> _ => panic!("timed out"),