Bug 1994728 - Fix test_dns_service.js to mock the DNS response r=necko-reviewers,kershaw a=test-only

Differential Revision: https://phabricator.services.mozilla.com/D268884
This commit is contained in:
Valentin Gosu
2025-10-16 14:05:38 +00:00
committed by rvandermeulen@mozilla.com
parent 848482276a
commit 9fa1fadb82

View File

@@ -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";