diff options
author | Gar <gar+gh@danger.computer> | 2022-03-03 21:03:09 +0300 |
---|---|---|
committer | Ruy Adorno <ruyadorno@hotmail.com> | 2022-03-10 18:40:11 +0300 |
commit | 1c182e11d524294d85348a3c2566f266bd281c00 (patch) | |
tree | 95e7419494fee239db6c8e0a0ef239be5db56128 /test/lib | |
parent | 0da59186e5a78bbcf47c440289241e9f85ff3eba (diff) |
fix(doctor): don't retry ping
Diffstat (limited to 'test/lib')
-rw-r--r-- | test/lib/commands/doctor.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/lib/commands/doctor.js b/test/lib/commands/doctor.js index 25c3bea0d..9445db8a6 100644 --- a/test/lib/commands/doctor.js +++ b/test/lib/commands/doctor.js @@ -461,3 +461,17 @@ t.test('cacache missingContent', async t => { t.matchSnapshot(joinedOutput(), 'missing content') t.matchSnapshot({ info: logs.info, warn: logs.warn, error: logs.error }, 'logs') }) + +t.test('bad proxy', async t => { + const { joinedOutput, logs, npm } = await loadMockNpm(t, { + mocks, + config: { + proxy: 'ssh://npmjs.org' + }, + ...dirs, + }) + await t.rejects(npm.exec('doctor', [])) + t.matchSnapshot(joinedOutput(), 'output') + t.matchSnapshot({ info: logs.info, warn: logs.warn, error: logs.error }, 'logs') +}) + |