Chromium Code Reviews
DescriptionFix flaky test ContentVerifierPolicyTest.PolicyCorruptedOnStartup
The way this test works is that the PRE_ test disables a policy force
installed extension due to corruption, and then the regular test checks
that it gets properly reinstalled after startup. It turns out that the
reinstall gets scheduled pretty early on during startup - in
ExtensionService::CheckForExternalUpdates which happens after
SetUpInProcessBrowserTestFixture, and on the build waterfall that
sometimes completes before SetUpOnMainThread of the tesst runs, let
alone when the regular test body runs. On a local development machine I
wasn't able to reproduce this unless I induced a lot of extra load using
stress-ng.
So the fix is to switch the test from assuming the install will happen
during the regular test body to first checking whether it already
happened before the start of the test, and only waiting for it if it
hadn't already happened.
BUG=668067
Committed: https://crrev.com/ba52f3250a997eaee8663d6731819431bca18a71
Cr-Commit-Position: refs/heads/master@{#435344}
Patch Set 1 #
Total comments: 2
Patch Set 2 : review fixes #Messages
Total messages: 19 (10 generated)
|