Skip to content

Commit 67b3f4f

Browse files
richardlautargos
authored andcommitted
test: remove reliance on in-tree deps/undici
Remove the dependency on the in-tree copy of Undici in `deps/undici` from `parallel/test-inspector-network-fetch`. For downstream rebuilders of Node.js using an externalized Undici it is not uncommon to remove `deps/undici` to ensure that the build is not using the in-tree copy. PR-URL: #58866 Refs: #58865 Reviewed-By: LiviaMedeiros <[email protected]> Reviewed-By: Marco Ippolito <[email protected]> Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 5e854e1 commit 67b3f4f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/parallel/test-inspector-network-fetch.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Flags: --inspect=0 --experimental-network-inspection
1+
// Flags: --inspect=0 --experimental-network-inspection --expose-internals
22
'use strict';
33
const common = require('../common');
44

@@ -12,8 +12,8 @@ const https = require('node:https');
1212
const inspector = require('node:inspector/promises');
1313

1414
// Disable certificate validation for the global fetch.
15-
const undici = require('../../deps/undici/src/index.js');
16-
undici.setGlobalDispatcher(new undici.Agent({
15+
const undici = require('internal/deps/undici/undici');
16+
undici.setGlobalDispatcher(new undici.EnvHttpProxyAgent({
1717
connect: {
1818
rejectUnauthorized: false,
1919
},

0 commit comments

Comments
 (0)