Index: headless/test/headless_browser_test.cc |
diff --git a/headless/test/headless_browser_test.cc b/headless/test/headless_browser_test.cc |
index 05257825cb02614227c12ffbac85910a8e1984f6..2424231ca312222940595fc0fbafe5710adb0c45 100644 |
--- a/headless/test/headless_browser_test.cc |
+++ b/headless/test/headless_browser_test.cc |
@@ -98,6 +98,7 @@ bool HeadlessBrowserTest::WaitForLoad(HeadlessWebContents* web_contents) { |
void HeadlessBrowserTest::RunAsynchronousTest() { |
base::MessageLoop::ScopedNestableTaskAllower nestable_allower( |
base::MessageLoop::current()); |
+ EXPECT_FALSE(run_loop_); |
run_loop_ = base::WrapUnique(new base::RunLoop()); |
run_loop_->Run(); |
run_loop_ = nullptr; |