5555: Bump test timeout for macs r=matklad a=matklad



bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
bors[bot] 2020-07-28 08:32:49 +00:00 committed by GitHub
commit eb99c35b3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"),