fix(ci): Fix unused import warnings on macos

This commit is contained in:
Kateřina Churanová
2022-11-28 15:08:01 +01:00
committed by GitHub
parent afda63f9e2
commit 08951e1c56
2 changed files with 7 additions and 3 deletions

View File

@@ -676,7 +676,7 @@ mod tests {
}
#[async_test]
#[cfg(any(target_os = "linux", target_arch = "wasm32"))]
#[cfg(any(target_os = "linux", target_os = "macos", target_arch = "wasm32"))]
async fn expiration() -> Result<(), MegolmError> {
use ruma::SecondsSinceUnixEpoch;

View File

@@ -529,9 +529,9 @@ impl VerificationMachine {
#[cfg(test)]
mod tests {
use std::{sync::Arc, time::Duration};
use std::sync::Arc;
use matrix_sdk_common::{instant::Instant, locks::Mutex};
use matrix_sdk_common::locks::Mutex;
use matrix_sdk_test::async_test;
use ruma::TransactionId;
@@ -644,6 +644,10 @@ mod tests {
#[allow(unknown_lints, clippy::unchecked_duration_subtraction)]
#[async_test]
async fn timing_out() {
use std::time::Duration;
use matrix_sdk_common::instant::Instant;
let (alice_machine, bob) = setup_verification_machine().await;
let alice = alice_machine.get_sas(bob.user_id(), bob.flow_id().as_str()).unwrap();