Fix DeviceStatusCollector tests that were flaky.
Some of the tests make assetions on pref values, but they were doing so without guarantees that the latest value were available. To solve the proble, I forced the pending values to be written to the prefs and moved the assertion to the callback that is invoked when this operation has finished. Bug: 891573 Change-Id: I76411e6d93f061b12af2144cc88e9339531dd3a0 Reviewed-on: https://chromium-review.googlesource.com/c/1261995 Commit-Queue: Henrique Grandinetti <hgrandinetti@google.com> Reviewed-by:Sergey Poromov <poromov@chromium.org> Cr-Commit-Position: refs/heads/master@{#597165}
Showing
Please register or sign in to comment