This repository has been archived by the owner on Dec 3, 2019. It is now read-only.
mirrored from https://chromium.googlesource.com/catapult
-
Notifications
You must be signed in to change notification settings - Fork 564
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Telemetry] Fix flaky browser test due to duplicated system stubbing
All the browser tests were flaky because we fail to restore the |sys| module in desktop_browser_finder. The reason were because the module desktop_browser_finder were overriden twice, hence in the second time its original module |desktop_browser_finder.sys| is already stubbed. The system_stub framework then tries to restore desktop_browser_finder.sys with this "original" sys module, hence failing to restore desktop_browser_finder to real original state. This CL remove the duplicate stubbing & add assertion in system_stub to avoid overriding a module twice. BUG=catapult:#3074 Review-Url: https://codereview.chromium.org/2574453002
- Loading branch information
Showing
2 changed files
with
8 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters