Deflake TwoClientSessionsSyncTest.NoHistoryIfEncryptionEnabled
ForeignSessionsMatchChecker used to check foreign sessions against the *snapshot* of local sessions on other profiles. If these local sessions change again after taking the snapshot (due to postponed events) before check has been completed, then check fails. This might not affect other sessions test because they complete sessions sync faster (before new local changes). The solution is to grab local sessions in every IsExitConditionSatisfied() call. ForeignSessionsMatchChecker now compares foreign sessions only against single profile, instead of all given windows. Bug: 1028968 Change-Id: Ib8c3ea1c71f90e8a5dfc22609eac08c5e3681daa Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1942128 Commit-Queue: Maksim Moskvitin <mmoskvitin@google.com> Reviewed-by:Marc Treib <treib@chromium.org> Cr-Commit-Position: refs/heads/master@{#720002}
Showing
Please register or sign in to comment