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
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib/commands/doctor.js')
-rw-r--r--test/lib/commands/doctor.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/lib/commands/doctor.js b/test/lib/commands/doctor.js
index 620d908d3..eaf2ee6c6 100644
--- a/test/lib/commands/doctor.js
+++ b/test/lib/commands/doctor.js
@@ -359,8 +359,10 @@ t.test('incorrect owner', async t => {
...fs,
lstat: (p, cb) => {
const stat = fs.lstatSync(p)
- stat.uid += 1
- stat.gid += 1
+ if (p.endsWith('_cacache')) {
+ stat.uid += 1
+ stat.gid += 1
+ }
return cb(null, stat)
},
},