crypto: Scope the imports for the unwedging test into the test.

This commit is contained in:
Damir Jelić 2020-12-08 12:56:16 +01:00
parent 0a76f75c22
commit c8dd6bfd26

View file

@ -316,8 +316,7 @@ mod test {
use matrix_sdk_common::{
api::r0::keys::claim_keys::Response as KeyClaimResponse,
identifiers::{user_id, DeviceIdBox, DeviceKeyAlgorithm, UserId},
instant::{Duration, Instant},
identifiers::{user_id, DeviceIdBox, UserId},
};
use matrix_sdk_test::async_test;
@ -424,6 +423,11 @@ mod test {
#[async_test]
#[cfg(not(target_os = "linux"))]
async fn session_unwedging() {
use matrix_sdk_common::{
identifiers::DeviceKeyAlgorithm,
instant::{Duration, Instant},
};
let manager = session_manager().await;
let bob = bob_account();
let (_, mut session) = bob.create_session_for(&manager.account).await;