Fix AndroidSyncSettingsTest race condition when updating Account
Multiple tests in AndroidSyncSettingsTest calls AndroidSyncSettings#updateAccount (get Account on UiThread) without providing a callback and waiting for the callback, while tearDown process reset the Account to be null, therefore, situation tends to happen when teardown runs before the ui thread runnable, and cause null exception. Bug: 640116 Change-Id: I43da6070f0193265efe965fdb0530f4caee4ace2 Reviewed-on: https://chromium-review.googlesource.com/567766Reviewed-by:Tommy Nyquist <nyquist@chromium.org> Commit-Queue: Yoland Yan <yolandyan@chromium.org> Cr-Commit-Position: refs/heads/master@{#486908}
Showing
Please register or sign in to comment