From e034a51b7be43644d3f2ec098b4cd8b6b4cf7ff6 Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Tue, 11 Nov 2025 17:36:15 +0100 Subject: [PATCH] test(sdk): Update to use `EventCacheStoreLockState`. --- .../matrix-sdk/src/latest_events/latest_event.rs | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/crates/matrix-sdk/src/latest_events/latest_event.rs b/crates/matrix-sdk/src/latest_events/latest_event.rs index ac173cf24..8ba63360e 100644 --- a/crates/matrix-sdk/src/latest_events/latest_event.rs +++ b/crates/matrix-sdk/src/latest_events/latest_event.rs @@ -292,7 +292,9 @@ mod tests_latest_event { .event_cache_store() .lock() .await - .unwrap() + .expect("Could not acquire the event cache lock") + .as_clean() + .expect("Could not acquire a clean event cache lock") .handle_linked_chunk_updates( LinkedChunkId::Room(&room_id), vec![ @@ -410,7 +412,9 @@ mod tests_latest_event { .event_cache_store() .lock() .await - .unwrap() + .expect("Could not acquire the event cache lock") + .as_clean() + .expect("Could not acquire a clean event cache lock") .handle_linked_chunk_updates( LinkedChunkId::Room(&room_id), vec![ @@ -1693,7 +1697,9 @@ mod tests_latest_event_value_builder { .event_cache_store() .lock() .await - .unwrap() + .expect("Could not acquire the event cache lock") + .as_clean() + .expect("Could not acquire a clean event cache lock") .handle_linked_chunk_updates( LinkedChunkId::Room(room_id), vec![ @@ -2316,7 +2322,9 @@ mod tests_latest_event_value_builder { .event_cache_store() .lock() .await - .unwrap() + .expect("Could not acquire the event cache lock") + .as_clean() + .expect("Could not acquire a clean event cache lock") .handle_linked_chunk_updates( LinkedChunkId::Room(room_id), vec![