Fix flaky test DeviceCloudPolicyManagerChromeOSEnrollmentTest
The test failed because sometimes RemoteCommandsService generated an additional request that was not expected by a mock object. Fixed by reordering AllowUninterestingRemoteCommandFetches function calls and EXPECT_CALL(..., StartJob(_)) calls. It looks like the latter one overrode the former one. Bug: 1014318 Test: DeviceCloudPolicyManagerChromeOSEnrollmentTest.Success Change-Id: I9cd8f13c9346623faaabb3c850b292ec10bdd5f6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1924431Reviewed-by:Maksim Ivanov <emaxx@chromium.org> Commit-Queue: Michael Ershov <miersh@google.com> Cr-Commit-Position: refs/heads/master@{#717690}
Showing
Please register or sign in to comment