Commit 9dcd9de1 authored by Tarun Bansal's avatar Tarun Bansal Committed by Commit Bot

Attempt to deflake resource loading hints test

Bug: 866212
Change-Id: Ia74a20e7061590fafadf69ac13ac595f1c6c4f8e
TBR: dougarnett@chromium.org
Reviewed-on: https://chromium-review.googlesource.com/1146060
Commit-Queue: Tarun Bansal <tbansal@chromium.org>
Reviewed-by: default avatarTarun Bansal <tbansal@chromium.org>
Cr-Commit-Position: refs/heads/master@{#577074}
parent d3fa3357
......@@ -186,6 +186,8 @@ class ResourceLoadingNoFeaturesBrowserTest : public InProcessBrowserTest {
void VerifyAllSubresourcesFetched() const {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
base::RunLoop().RunUntilIdle();
for (const auto& expect : subresource_expected_) {
EXPECT_FALSE(expect.second);
}
......@@ -196,6 +198,8 @@ class ResourceLoadingNoFeaturesBrowserTest : public InProcessBrowserTest {
private:
void TearDownOnMainThread() override {
EXPECT_TRUE(https_server_->ShutdownAndWaitUntilComplete());
EXPECT_TRUE(http_server_->ShutdownAndWaitUntilComplete());
VerifyAllSubresourcesFetched();
InProcessBrowserTest::TearDownOnMainThread();
......
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