• sammc's avatar
    Deflake MultiThreadedProxyResolverTest.ThreeThreads_Basic. · 3418083e
    sammc authored
    Previously, MultiThreadedProxyResolverTest.ThreeThreads_Basic started
    multiple requests in parallel and expected resolvers on three threads
    to be created and used. However, the new resolver thread can take long
    enough to become ready that it doesn't finish initializing its resolver
    before all requests complete on other threads and the test finishes.
    This CL fixes this by blocking the resolvers to force requests to run on
    new resolver threads.
    
    BUG=486257
    
    Review URL: https://codereview.chromium.org/1132943003
    
    Cr-Commit-Position: refs/heads/master@{#329360}
    3418083e
multi_threaded_proxy_resolver_unittest.cc 27.2 KB