diff --git a/matrix_sdk_crypto/benches/crypto_bench.rs b/matrix_sdk_crypto/benches/crypto_bench.rs index 6467bb65..271be9b7 100644 --- a/matrix_sdk_crypto/benches/crypto_bench.rs +++ b/matrix_sdk_crypto/benches/crypto_bench.rs @@ -222,7 +222,7 @@ pub fn room_key_sharing(c: &mut Criterion) { .unwrap(); } - machine.invalidate_group_session(&room_id); + machine.invalidate_group_session(&room_id).await.unwrap(); }) }); @@ -258,7 +258,7 @@ pub fn room_key_sharing(c: &mut Criterion) { .unwrap(); } - machine.invalidate_group_session(&room_id); + machine.invalidate_group_session(&room_id).await.unwrap(); }) }); diff --git a/matrix_sdk_crypto/src/machine.rs b/matrix_sdk_crypto/src/machine.rs index 4bb83afd..dba81260 100644 --- a/matrix_sdk_crypto/src/machine.rs +++ b/matrix_sdk_crypto/src/machine.rs @@ -1462,7 +1462,7 @@ pub(crate) mod test { .get_outbound_group_session(&room_id) .is_some()); - machine.invalidate_group_session(&room_id); + machine.invalidate_group_session(&room_id).await.unwrap(); assert!(machine .group_session_manager