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 [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]>
  • Loading branch information
daeyeon authored and danielleadams committed Aug 11, 2022
1 parent f882318 commit f27e003
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 f27e003

Please sign in to comment.