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:
committed by
rvandermeulen@mozilla.com
parent
9fa1fadb82
commit
45b12df108
@@ -2,6 +2,14 @@
|
||||
// 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() {
|
||||
run_test_in_child("../unit/test_dns_service.js");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user