Skip to content

Commit c7dd9c8

Browse files
committed
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: #36895 PR-URL: #36933 Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Michael Dawson <midawson@redhat.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 3bbe9a5 commit c7dd9c8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/parallel/test-npm-install.js

+2
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ const env = { ...process.env,
4242
PATH: path.dirname(process.execPath),
4343
NPM_CONFIG_PREFIX: path.join(npmSandbox, 'npm-prefix'),
4444
NPM_CONFIG_TMP: path.join(npmSandbox, 'npm-tmp'),
45+
NPM_CONFIG_AUDIT: false,
46+
NPM_CONFIG_UPDATE_NOTIFIER: false,
4547
HOME: homeDir,
4648
};
4749

0 commit comments

Comments
 (0)