Skip to content

Commit 40e2ca7

Browse files
daeyeonruyadorno
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 daeyeon.dev@gmail.com PR-URL: #44025 Refs: #43522 Refs: https://github.com/nodejs/node/actions/workflows/test-internet.yml Reviewed-By: Paolo Insogna <paolo@cowtech.it> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
1 parent 3eacf25 commit 40e2ca7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
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)