Skip to content

Commit

Permalink
test: fix internet/test-inspector-help-page
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
daeyeon authored and juanarbol committed Oct 11, 2022
1 parent 606b0a0 commit ec7b932
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/internet/test-inspector-help-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const stderr = child.stderr.toString();
const helpUrl = stderr.match(/For help, see: (.+)/)[1];

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

if (res.statusCode >= 300)
Expand Down

0 comments on commit ec7b932

Please sign in to comment.