Fix flaky DeferredStartupHandler test waiting
We can get into a situation where an Activity is finished before Deferred startup finishes, then the old DeferredStartupHandler finishes during startup of the next test and a new instance is created before we wait for deferred startup completion. The solution is just to hold onto the DeferredStartupHandler instance in tests during startup to ensure a new instance isn't created. The test that's actually flaky under these circumstances is TabbedActivityLaunchCauseMetricsTest#testMainIntentMetrics Change-Id: I4e172f77c3ebad45f5b3236b68614b2b152c718c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2643030Reviewed-by:Andrew Grieve <agrieve@chromium.org> Commit-Queue: Michael Thiessen <mthiesse@chromium.org> Cr-Commit-Position: refs/heads/master@{#846279}
Showing
Please register or sign in to comment