Skip to content

Commit 78ff319

Browse files
committed
fixup! fix(test): fix test expectations in test_skip_count…
1 parent 30dfd30 commit 78ff319

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/matrix-sdk-ui/tests/integration/timeline/pagination.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,8 @@ async fn test_skip_count_is_taken_into_account_in_pagination_status() {
276276
assert_let_timeout!(Some(timeline_updates) = timeline_stream.next());
277277
assert_eq!(timeline_updates.len(), 11);
278278

279-
for i in 0..9 {
280-
assert_let!(VectorDiff::PushFront { value: message } = &timeline_updates[i]);
279+
for item in timeline_updates.iter().take(9) {
280+
assert_let!(VectorDiff::PushFront { value: message } = item);
281281
assert_let!(Some(msg) = message.as_event().unwrap().content().as_message());
282282
assert_let!(MessageType::Text(text) = msg.msgtype());
283283
assert!(text.body.starts_with("hello world"));

0 commit comments

Comments
 (0)