Skip to content

Commit ec7b932

Browse files
daeyeonjuanarbol
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: #44025 Refs: #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 606b0a0 commit ec7b932

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
consthelpUrl=stderr.match(/Forhelp,see:(.+)/)[1];
1515

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

2020
if(res.statusCode>=300)

0 commit comments

Comments
(0)