Skip to content

Commit 805c6d8

Browse files
daeyeonguangwong
authored andcommitted
test: fix internet/test-inspector-help-page
This gets the test to use its own `https.agent` instead of the default one. Signed-off-by: Daeyeon Jeong [email protected] PR-URL: nodejs/node#44025 Refs: nodejs/node#43522 Refs: https://github.com/nodejs/node/actions/workflows/test-internet.yml Reviewed-By: Paolo Insogna <[email protected]> Reviewed-By: Juan José Arboleda <[email protected]>
1 parent de285b6 commit 805c6d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/internet/test-inspector-help-page.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const stderr = child.stderr.toString();
1414
const helpUrl = stderr.match(/For help, see: (.+)/)[1];
1515

1616
function check(url, cb) {
17-
https.get(url, common.mustCall((res) => {
17+
https.get(url, { agent: new https.Agent() }, common.mustCall((res) => {
1818
assert(res.statusCode >= 200 && res.statusCode < 400);
1919

2020
if (res.statusCode >= 300)

0 commit comments

Comments
 (0)