aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-07-28 09:24:33 +0100
committerAleksey Kladov <[email protected]>2020-07-28 09:31:08 +0100
commit97d309ea4b152e356866fdee131544c3910b9faf (patch)
tree765b724580dcc213f0772b94c7cecd8b318750c9 /crates
parent020a40335bb2d45245d1164e4075e7f622084705 (diff)
Bump test timeout for macs
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"),