Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2013-05-04 01:53:17 +0400
committerisaacs <i@izs.me>2013-05-04 01:53:17 +0400
commit38dc7e61779068f956713e512de4a71e26473f2c (patch)
tree534547bd718f50688d7d09294ba96f155f6dae88 /test
parent1cdd48197a516f2a7a4fce2b1c59c5420971e81d (diff)
test: Don't wait for lockfiles in publishConfig test
Was timing out
Diffstat (limited to 'test')
-rw-r--r--test/tap/publish-config.js13
1 files changed, 10 insertions, 3 deletions
diff --git a/test/tap/publish-config.js b/test/tap/publish-config.js
index ac8c94a0d..c9d52c8fc 100644
--- a/test/tap/publish-config.js
+++ b/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
+ }
})
})
})