mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-12 13:18:47 +00:00
Bump test timeout for macs
This commit is contained in:
parent
020a40335b
commit
97d309ea4b
1 changed files with 2 additions and 1 deletions
|
@ -253,7 +253,8 @@ impl Drop for Server {
|
|||
}
|
||||
|
||||
fn recv_timeout(receiver: &Receiver<Message>) -> Option<Message> {
|
||||
let timeout = Duration::from_secs(120);
|
||||
let timeout =
|
||||
if cfg!(target_os = "macos") { Duration::from_secs(300) } else { Duration::from_secs(120) };
|
||||
select! {
|
||||
recv(receiver) -> msg => msg.ok(),
|
||||
recv(after(timeout)) -> _ => panic!("timed out"),
|
||||
|
|
Loading…
Reference in a new issue