From c7dd9c8c693a57c4e2421826ea9c259f005f9e29 Mon Sep 17 00:00:00 2001 From: Ruy Adorno Date: Thu, 14 Jan 2021 15:28:49 -0500 Subject: [PATCH] test: skip internet for test-npm-install Disabling any internet-required features (namely audit and update-notifer) in order for the test to work without an internet connection. - Fixes: https://github.com/nodejs/node/issues/36895 PR-URL: https://github.com/nodejs/node/pull/36933 Reviewed-By: Richard Lau Reviewed-By: Michael Dawson Reviewed-By: Rich Trott Reviewed-By: James M Snell Reviewed-By: Myles Borins Reviewed-By: Luigi Pinca --- test/parallel/test-npm-install.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/parallel/test-npm-install.js b/test/parallel/test-npm-install.js index 1eec5f57ad6db9..17deacdbc14d2a 100644 --- a/test/parallel/test-npm-install.js +++ b/test/parallel/test-npm-install.js @@ -42,6 +42,8 @@ const env = { ...process.env, PATH: path.dirname(process.execPath), NPM_CONFIG_PREFIX: path.join(npmSandbox, 'npm-prefix'), NPM_CONFIG_TMP: path.join(npmSandbox, 'npm-tmp'), + NPM_CONFIG_AUDIT: false, + NPM_CONFIG_UPDATE_NOTIFIER: false, HOME: homeDir, };