Skip to content

Commit

Permalink
test: skip internet for test-npm-install
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ruyadorno committed Jan 21, 2021
1 parent 3bbe9a5 commit c7dd9c8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/parallel/test-npm-install.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};

Expand Down

0 comments on commit c7dd9c8

Please sign in to comment.