Fix flaky SensorBackForwardCacheBrowserTest.SensorPausedWhileCached.
PROBLEM: Each event resolve a pending promise if set, however this is racy, sometimes it is set after the event. FIX: Switch to waiting until there is *at least* N events. We need to track more state in the test but we can cope with events arriving early. Bug: 1029238 Change-Id: If4c14b82907d5bb6460208e6218e84501b836ff9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1946187Reviewed-by:Alexander Timin <altimin@chromium.org> Reviewed-by:
Kouhei Ueno <kouhei@chromium.org> Commit-Queue: Fergal Daly <fergal@chromium.org> Cr-Commit-Position: refs/heads/master@{#720764}
Showing
Please register or sign in to comment