crypto: Await the group session invalidation

master
Damir Jelić 2021-04-12 15:19:30 +02:00
parent cb58c499b3
commit b4b897dd51
2 changed files with 3 additions and 3 deletions

View File

@ -222,7 +222,7 @@ pub fn room_key_sharing(c: &mut Criterion) {
.unwrap(); .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(); .unwrap();
} }
machine.invalidate_group_session(&room_id); machine.invalidate_group_session(&room_id).await.unwrap();
}) })
}); });

View File

@ -1462,7 +1462,7 @@ pub(crate) mod test {
.get_outbound_group_session(&room_id) .get_outbound_group_session(&room_id)
.is_some()); .is_some());
machine.invalidate_group_session(&room_id); machine.invalidate_group_session(&room_id).await.unwrap();
assert!(machine assert!(machine
.group_session_manager .group_session_manager