Commit 21e3b866 authored by jongkwon.lee's avatar jongkwon.lee Committed by Commit Bot

Fix flakiness of ExtensionBrowserTest

the extension to be loaded, so remove RunLoop::RunUntilIdle
which causes the flaky tests.

ChromeTestExtensionLoader: :LoadExtension is already waiting for
Change-Id: I7c7727617e93b2152e84ec32532ab084b889c745
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1743242Reviewed-by: default avatarScott Violet <sky@chromium.org>
Commit-Queue: Scott Violet <sky@chromium.org>
Cr-Commit-Position: refs/heads/master@{#685199}
parent b2985b14
......@@ -133,7 +133,6 @@ scoped_refptr<const Extension> ChromeTestExtensionLoader::LoadExtension(
if (!CheckInstallWarnings(*extension))
return nullptr;
base::RunLoop().RunUntilIdle();
if (!WaitForExtensionReady(*extension)) {
ADD_FAILURE() << "Failed to wait for extension ready";
return nullptr;
......
......@@ -157,9 +157,6 @@ IN_PROC_BROWSER_TEST_F(ToolbarViewInteractiveUITest,
ASSERT_TRUE(LoadExtension(test_data_dir_.AppendASCII("api_test")
.AppendASCII("browser_action")
.AppendASCII("basics")));
// Ensure the extension is fully loaded, and that the next steps will happen
// with a clean slate.
base::RunLoop().RunUntilIdle();
// Set up observers that will drive the test along.
AppMenuButton* const app_menu_button = GetAppMenuButton();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment