Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion test/parallel/test-inspector-network-fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,13 @@ const http = require('node:http');
const https = require('node:https');
const inspector = require('node:inspector/promises');

// Disable certificate validation for the global fetch.
// Disable certificate validation for the global fetch. Also bypass any proxy
// configured through the environment (http_proxy/https_proxy) so that ambient
// proxy settings do not route the requests through a proxy, which would change
// the observed request URLs and make the test fail.
const undici = require('internal/deps/undici/undici');
undici.setGlobalDispatcher(new undici.EnvHttpProxyAgent({
noProxy: '*',
connect: {
rejectUnauthorized: false,
},
Expand Down
Loading