commit 7dc370bd78d10b6737809c8b33d8437ef6c7b144
parent e1666f8fd6ff1f18db2e43c141fc75e349ecc505
Author: Valentin Gosu <valentin.gosu@gmail.com>
Date: Thu, 16 Oct 2025 14:05:38 +0000
Bug 1994728 - Fix test_dns_service.js to mock the DNS response r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D268884
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/netwerk/test/unit/test_dns_service.js b/netwerk/test/unit/test_dns_service.js
@@ -25,6 +25,10 @@ class Listener {
Listener.prototype.QueryInterface = ChromeUtils.generateQI(["nsIDNSListener"]);
+// This domain used to resolve. We fake the response to avoid
+// depending on the network for automated tests.
+overrideService.addIPOverride("xn--bcher-kva.org", "127.0.0.1");
+
const DOMAIN_IDN = "bücher.org";
const ACE_IDN = "xn--bcher-kva.org";