diff options
Diffstat (limited to 'deps/npm/test/tap/retry-on-stale-cache.js')
-rw-r--r-- | deps/npm/test/tap/retry-on-stale-cache.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/deps/npm/test/tap/retry-on-stale-cache.js b/deps/npm/test/tap/retry-on-stale-cache.js index 3a7f5c206c..df6d7c2db3 100644 --- a/deps/npm/test/tap/retry-on-stale-cache.js +++ b/deps/npm/test/tap/retry-on-stale-cache.js @@ -163,10 +163,11 @@ test('setup new server', function (t) { test('install new version', function (t) { common.npm(config.concat([ - '--cache-min', 'Infinity', + '--prefer-offline', 'install', 'good-night@1.0.0' - ]), {stdio: 'inherit'}, function (err, code) { + ]), {}, function (err, code, stdout, stderr) { if (err) throw err + t.equal(stderr, '', 'no error output') t.is(code, 0, 'install succeeded') t.end() @@ -176,13 +177,14 @@ test('install new version', function (t) { test('install does not hit server again', function (t) { // The mock server route definitions ensure we don't hit the server again common.npm(config.concat([ - '--cache-min', 'Infinity', + '--prefer-offline', + '--parseable', 'install', 'good-night' ]), {stdio: [0, 'pipe', 2]}, function (err, code, stdout) { if (err) throw err t.is(code, 0, 'install succeeded') - t.match(stdout, /@1\.0\.0/, 'installed latest version') + t.match(stdout, /^update\tgood-night\t1.0.0\t/, 'installed latest version') server.done() t.end() }) |