[Wallet] Fix waiting in single client wallet integration tests
Some of the the single client wallet tests used imprecise and possibly flaky waiting routines -- waiting for PDM to trigger OnPersonalDataChanged() once. This can signify that it has reloaded new data from the WebDB but this notification is also triggered in various other situation so it can mean nothing. This CL removes this approach from all remaining tests (except for one where there's no better solution and where it arguably cannot cause flakiness) The CL replaces the previous approach with a more robust waiting loop that waits for such notifications until PDM has provably loaded new data. This CL also cleans up various helper functions. The CL only re-enables one disabled test, other tests will be enabled by follow-up CLs provided we see no new flakes. Bug: 1001975 Change-Id: I555a72ec07f0884285a39f0bdb5d184f70147fd9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1998520 Commit-Queue: Maxim Kolosovskiy <kolos@chromium.org> Reviewed-by:Maxim Kolosovskiy <kolos@chromium.org> Reviewed-by:
Marc Treib <treib@chromium.org> Auto-Submit: Jan Krcal <jkrcal@chromium.org> Cr-Commit-Position: refs/heads/master@{#733308}
Showing
This diff is collapsed.
Please register or sign in to comment