Commit af7a991a authored by sammc's avatar sammc Committed by Commit bot

Fix a race in MultiThreadedProxyResolverTest.ThreeThreads_Basic.

Review URL: https://codereview.chromium.org/1138313003

Cr-Commit-Position: refs/heads/master@{#329968}
parent dd5cbcb5
......@@ -555,6 +555,7 @@ TEST_F(MultiThreadedProxyResolverTest, ThreeThreads_Basic) {
callback[1].callback(), &request[1],
BoundNetLog());
EXPECT_EQ(ERR_IO_PENDING, rv);
factory().resolvers()[0]->WaitUntilBlocked();
rv = resolver().GetProxyForURL(GURL("http://request2"), &results[2],
callback[2].callback(), &request[2],
BoundNetLog());
......@@ -569,6 +570,7 @@ TEST_F(MultiThreadedProxyResolverTest, ThreeThreads_Basic) {
callback[3].callback(), &request[3],
BoundNetLog());
EXPECT_EQ(ERR_IO_PENDING, rv);
factory().resolvers()[1]->WaitUntilBlocked();
rv = resolver().GetProxyForURL(GURL("http://request4"), &results[4],
callback[4].callback(), &request[4],
BoundNetLog());
......
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