Skip to content

Commit d2874af

Browse files
andybalaambnjbvr
authored andcommitted
fix(integration-tests): Fixes #4871 (hopefully). Repeatedly sync in a test after other user cross-signs
1 parent a848506 commit d2874af

File tree

1 file changed

+7
-0
lines changed
  • testing/matrix-sdk-integration-testing/src/tests

1 file changed

+7
-0
lines changed

testing/matrix-sdk-integration-testing/src/tests/timeline.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -873,6 +873,13 @@ async fn test_new_users_first_messages_dont_warn_about_insecure_device_if_it_is_
873873
// But when alice becomes cross-signed and bob finds out about it
874874
cross_sign(&alice).await;
875875
bob.sync_once(SyncSettings::new()).await.expect("should not fail to sync");
876+
877+
// Sync again to make sure the server has notified us about the update to
878+
// alice's device info.
879+
bob.sync_once(SyncSettings::new().timeout(Duration::from_millis(2000)))
880+
.await
881+
.expect("should not fail to sync");
882+
876883
fetch_user_identity(&bob, alice.user_id()).await;
877884
let update2 = assert_next_with_timeout!(timeline_stream);
878885

0 commit comments

Comments
 (0)