Bug 1994728 - Also fix dns_service_wrap test r=necko-reviewers,kershaw a=test-only

Differential Revision: https://phabricator.services.mozilla.com/D268923
This commit is contained in:
Valentin Gosu
2025-10-17 07:28:53 +00:00
committed by rvandermeulen@mozilla.com
parent 9fa1fadb82
commit 45b12df108

View File

@@ -2,6 +2,14 @@
// Run test script in content process instead of chrome (xpcshell's default) // Run test script in content process instead of chrome (xpcshell's default)
// //
const overrideService = Cc[
"@mozilla.org/network/native-dns-override;1"
].getService(Ci.nsINativeDNSResolverOverride);
// 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");
function run_test() { function run_test() {
run_test_in_child("../unit/test_dns_service.js"); run_test_in_child("../unit/test_dns_service.js");
} }