diff options
Diffstat (limited to 'deps/npm/test/tap/publish-config.js')
| -rw-r--r-- | deps/npm/test/tap/publish-config.js | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/deps/npm/test/tap/publish-config.js b/deps/npm/test/tap/publish-config.js index ac8c94a0d0..c9d52c8fcb 100644 --- a/deps/npm/test/tap/publish-config.js +++ b/deps/npm/test/tap/publish-config.js @@ -15,8 +15,6 @@ var spawn = require('child_process').spawn var npm = require.resolve('../../bin/npm-cli.js') var node = process.execPath -console.error('pkg=%j', pkg) - test(function (t) { var child require('http').createServer(function (req, res) { @@ -34,8 +32,17 @@ test(function (t) { // // there are plenty of other tests to verify that publish // itself functions normally. + // + // Make sure that we don't sit around waiting for lock files child = spawn(node, [npm, 'publish'], { - cwd: pkg + cwd: pkg, + env: { + npm_config_cache_lock_stale: 1000, + npm_config_cache_lock_wait: 1000, + HOME: process.env.HOME, + Path: process.env.PATH, + PATH: process.env.PATH + } }) }) }) |
