diff options
author | Kat Marchán <kzm@sykosomatic.org> | 2017-05-01 05:32:10 +0300 |
---|---|---|
committer | Rebecca Turner <me@re-becca.org> | 2017-05-26 02:13:46 +0300 |
commit | e854b4ee783a57d4efad670b950be90dbd5b5f28 (patch) | |
tree | 699348b5ebcac5ee3f6b289a36332a4f3600a0c2 /test | |
parent | f18fde3ef074f392b34df35456143e8bd6994972 (diff) |
fix(tests): update retry-on-stale-cache to use --prefer-offline
Diffstat (limited to 'test')
-rw-r--r-- | test/tap/retry-on-stale-cache.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/tap/retry-on-stale-cache.js b/test/tap/retry-on-stale-cache.js index 882f71a5a..df6d7c2db 100644 --- a/test/tap/retry-on-stale-cache.js +++ b/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,7 +177,7 @@ 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) { |