mirror of
https://github.com/mozilla-firefox/firefox.git
synced 2026-06-14 20:45:13 -05:00
When a test points Telemetry at a stopped PingServer over "localhost", the connection can stall on the timeout if the name resolves to ::1 first (notably on Windows), so each failing ping send takes several seconds. test_backoffTimeout and test_persistCurrentPingsOnShutdown send many pings this way and time out. Use the IPv4 loopback in those tests so each connection is refused immediately. The pingsender path keeps using "localhost" to satisfy its destination allowlist. Differential Revision: https://phabricator.services.mozilla.com/D306199