File tree Expand file tree Collapse file tree
testing/matrix-sdk-integration-testing/src/tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -207,8 +207,8 @@ async fn test_toggling_reaction() -> Result<()> {
207207 // Remote echo is added twice: one from the Send Queue because the event is sent
208208 // and inserted in the Event Cache and one from the Event Cache via the sync.
209209 // The difference is it gets a read receipt, that's why we get a second update.
210- for i in 1 .. 3 {
211- let event = assert_event_is_updated ! ( timeline_updates [ i ] , event_id, message_position) ;
210+ for timeline_update in timeline_updates . iter ( ) . skip ( 1 ) {
211+ let event = assert_event_is_updated ! ( timeline_update , event_id, message_position) ;
212212
213213 let reactions = event. content ( ) . reactions ( ) . cloned ( ) . unwrap_or_default ( ) ;
214214 let reactions = reactions. get ( & reaction_key) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments