Fix flake in some CloudPolicyTest tests after SimpleURLLoader conversion in r571184.
There was a race condition when the policy fetch request that's initiated in CloudPolicyTest::SetUpOnMainThread is cancelled becauase the test bodies start their own request (through RefreshPolicies). The first request seems to get the python test server in a bad state and it stops responding to requests afterwards. The fix is to skip issuing the first request by temporarily unregistering CloudPolicyRefreshScheduler. TBR=pmarko Bug: 858883 Change-Id: I8c158ab3dffc2f38a7712a6806f9b8d28efbcfdb Reviewed-on: https://chromium-review.googlesource.com/1119628 Commit-Queue: John Abd-El-Malek <jam@chromium.org> Reviewed-by:John Abd-El-Malek <jam@chromium.org> Cr-Commit-Position: refs/heads/master@{#571402}
Showing
Please register or sign in to comment