Fix flaky UpgradeDetectorImplTest.TestPeriodChanges failures.
The test harness drives an UpgradeDetectorImpl by calling its UpgradeDetected method. In a normal instance, this method is called by tasks scheduled on detect_upgrade_timer_, which is only started after the instance has determined whether or not updates are enabled. Since the test harness was not waiting for this determination to complete, it was racing with this task. The fix is to disable the update enablement check in the test so that there's no race. BUG=832057 Change-Id: Ie8b69a59e7de29aa7da37fe1edba5d324dbed450 Reviewed-on: https://chromium-review.googlesource.com/1012041 Commit-Queue: Greg Thompson <grt@chromium.org> Reviewed-by:Scott Violet <sky@chromium.org> Cr-Commit-Position: refs/heads/master@{#550734}
Showing
Please register or sign in to comment