Bug 1611483 - Fix BAD_IP in netwerk/test/unit/test_trr.js on Android to be 127.9.9.9 to make the test work, r=dragana

Differential Revision: https://phabricator.services.mozilla.com/D61067

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Honza Bambas 2020-02-03 08:27:12 +00:00
parent ab65dd885f
commit 17b225e696

View File

@ -105,7 +105,7 @@ registerCleanupFunction(() => {
// This is an IP that is local, so we don't crash when connecting to it,
// but also connecting to it fails, so we attempt to retry with regular DNS.
const BAD_IP = (() => {
if (mozinfo.os == "linux") {
if (mozinfo.os == "linux" || mozinfo.os == "android") {
return "127.9.9.9";
}
return "0.0.0.0";