File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
crates/matrix-sdk/src/latest_events Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1017,9 +1017,9 @@ mod tests {
10171017 // The event cache has received its update from the sync. It has emitted a
10181018 // generic update, which has been received by `LatestEvents` tasks, up to the
10191019 // `compute_latest_events` which has updated the latest event value.
1020- assert_next_matches ! (
1021- latest_event_stream,
1022- LatestEventValue :: Remote ( RemoteLatestEventValue { kind: TimelineEventKind :: PlainText { event } , .. } ) => {
1020+ assert_matches ! (
1021+ latest_event_stream. next ( ) . await ,
1022+ Some ( LatestEventValue :: Remote ( RemoteLatestEventValue { kind: TimelineEventKind :: PlainText { event } , .. } ) ) => {
10231023 assert_matches!(
10241024 event. deserialize( ) . unwrap( ) ,
10251025 AnySyncTimelineEvent :: MessageLike (
You can’t perform that action at this time.
0 commit comments