test(sdk): Update to use EventCacheStoreLockState.

This commit is contained in:
Ivan Enderlin
2025-11-11 17:36:15 +01:00
parent 9e6a6c0e71
commit e034a51b7b

View File

@@ -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![