Deflake NetworkServiceRestartBrowserTests on slower bots
Previously ServiceWorkerObserver::WaitForState(STOPPED) starts to observe the state when it's called, but sometimes it's too slow and restarting the worker is already happening when starting to wait for state STOPPED. This CL fixes it by keeping all state changes and returning from WaitForState() if the observer saw the state previously at least once. Bug: 889855 Change-Id: Ide180fa49c9f47f68e1482b9a368b386648a3d4e Reviewed-on: https://chromium-review.googlesource.com/c/1337214Reviewed-by:Kinuko Yasuda <kinuko@chromium.org> Commit-Queue: Makoto Shimazu <shimazu@chromium.org> Cr-Commit-Position: refs/heads/master@{#608279}
Showing
Please register or sign in to comment