crypto: Disable the SAS timeout test on macOS.

master
Damir Jelić 2020-08-10 17:26:15 +02:00
parent 6593cce778
commit 1f0a96e31d
1 changed files with 2 additions and 0 deletions

View File

@ -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());