From f27e003e22f2fb96a83b0e3873b23ecd4dd6beda Mon Sep 17 00:00:00 2001 From: Daeyeon Jeong Date: Sun, 31 Jul 2022 20:46:14 +0900 Subject: [PATCH] test: fix `internet/test-inspector-help-page` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: https://github.com/nodejs/node/pull/44025 Refs: https://github.com/nodejs/node/pull/43522 Refs: https://github.com/nodejs/node/actions/workflows/test-internet.yml Reviewed-By: Paolo Insogna Reviewed-By: Juan José Arboleda --- test/internet/test-inspector-help-page.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/internet/test-inspector-help-page.js b/test/internet/test-inspector-help-page.js index 7baff031daf86c..d9ae17c5a887b2 100644 --- a/test/internet/test-inspector-help-page.js +++ b/test/internet/test-inspector-help-page.js @@ -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)