diff options
author | Aleksey Kladov <[email protected]> | 2020-07-28 09:24:33 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-07-28 09:31:08 +0100 |
commit | 97d309ea4b152e356866fdee131544c3910b9faf (patch) | |
tree | 765b724580dcc213f0772b94c7cecd8b318750c9 /crates | |
parent | 020a40335bb2d45245d1164e4075e7f622084705 (diff) |
Bump test timeout for macs
Diffstat (limited to 'crates')
-rw-r--r-- | crates/rust-analyzer/tests/heavy_tests/support.rs | 3 |
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 | ||
255 | fn recv_timeout(receiver: &Receiver<Message>) -> Option<Message> { | 255 | fn 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"), |