Fix NetworkContextConfigurationBrowserTest.DnsCacheIsolation flake.
The test makes sure that HostCache entries aren't shared between NetworkContexts. To do this, it does a DNS lookup in one NetworkContext, which succeeds, and then cache-only DNS lookups in other NetworkContexts, which should fail. At the end of the test, it does a cache-only lookup in the first NetworkContext, which should succeed. It's generally best to do this at the end of the test, since it makes sure that entries aren't only usable once, or somesuch. Unfortunately, sometimes the DNS cache entry is timing out before the last lookup. To fix that, this CL moves the final cache-only lookup to be right after the initial lookup that populates the cache. This does mean the test can still flakily pass, however, flaky successes are more tolerable than flaky failures, and the test currently passes often enough, even with the flake, that I think we can live with it. Bug: 1043084 Change-Id: Ibdcf77e7775943e18c21a9ddd2cd3d5bf127c248 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2008058 Commit-Queue: Matt Menke <mmenke@chromium.org> Reviewed-by:Eric Orth <ericorth@chromium.org> Cr-Commit-Position: refs/heads/master@{#733036}
Showing
Please register or sign in to comment