Unflake ProfileHelperTest.DeleteSoleProfile
The test removes the sole profile, waits for the browser removal from the BrowserList and then expects that the new browser is already added. This seems not to be always true, since the new profile/browser is created asynchronously. This CL modifies ProfileHelperTest.DeleteSoleProfile to wait for BrowserListObserver::OnBrowserAdded() event before checking that the BrowserList isn't empty. Bug: 1008238 Change-Id: Ie7b6a705d7cba5a03e943ed6ec0ab4c3ea08c36a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1863294 Auto-Submit: Alex Ilin <alexilin@chromium.org> Commit-Queue: Demetrios Papadopoulos <dpapad@chromium.org> Reviewed-by:Demetrios Papadopoulos <dpapad@chromium.org> Cr-Commit-Position: refs/heads/master@{#706499}
Showing
Please register or sign in to comment