From 1f0a96e31ded55fcba64fc7ec1e75c73518e232b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Mon, 10 Aug 2020 17:26:15 +0200 Subject: [PATCH] crypto: Disable the SAS timeout test on macOS. --- matrix_sdk_crypto/src/verification/machine.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/matrix_sdk_crypto/src/verification/machine.rs b/matrix_sdk_crypto/src/verification/machine.rs index b2461e46..ca3fc2f4 100644 --- a/matrix_sdk_crypto/src/verification/machine.rs +++ b/matrix_sdk_crypto/src/verification/machine.rs @@ -299,6 +299,7 @@ mod test { assert!(bob.is_done()); } + #[cfg(not(target_os = "macos"))] #[tokio::test] async fn timing_out() { let (alice_machine, bob) = setup_verification_machine().await; @@ -307,6 +308,7 @@ mod test { assert!(!alice.timed_out()); assert!(alice_machine.outgoing_to_device_messages.is_empty()); + // This line panics on macOS, so we're disabled for now. alice.set_creation_time(Instant::now() - Duration::from_secs(60 * 15)); assert!(alice.timed_out()); assert!(alice_machine.outgoing_to_device_messages.is_empty());