Skip to content

Commit 34193c2

Browse files
committed
update #2
1 parent 64d8743 commit 34193c2

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

crates/matrix-sdk/src/latest_events/latest_event.rs

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,9 @@ mod tests_latest_event {
292292
.event_cache_store()
293293
.lock()
294294
.await
295-
.unwrap()
295+
.expect("Could not acquire the event cache lock")
296+
.as_clean()
297+
.expect("Could not acquire a clean event cache lock")
296298
.handle_linked_chunk_updates(
297299
LinkedChunkId::Room(&room_id),
298300
vec![
@@ -410,7 +412,9 @@ mod tests_latest_event {
410412
.event_cache_store()
411413
.lock()
412414
.await
413-
.unwrap()
415+
.expect("Could not acquire the event cache lock")
416+
.as_clean()
417+
.expect("Could not acquire a clean event cache lock")
414418
.handle_linked_chunk_updates(
415419
LinkedChunkId::Room(&room_id),
416420
vec![
@@ -1693,7 +1697,9 @@ mod tests_latest_event_value_builder {
16931697
.event_cache_store()
16941698
.lock()
16951699
.await
1696-
.unwrap()
1700+
.expect("Could not acquire the event cache lock")
1701+
.as_clean()
1702+
.expect("Could not acquire a clean event cache lock")
16971703
.handle_linked_chunk_updates(
16981704
LinkedChunkId::Room(room_id),
16991705
vec![
@@ -2316,7 +2322,9 @@ mod tests_latest_event_value_builder {
23162322
.event_cache_store()
23172323
.lock()
23182324
.await
2319-
.unwrap()
2325+
.expect("Could not acquire the event cache lock")
2326+
.as_clean()
2327+
.expect("Could not acquire a clean event cache lock")
23202328
.handle_linked_chunk_updates(
23212329
LinkedChunkId::Room(room_id),
23222330
vec![

0 commit comments

Comments
 (0)