From b6b7cc59b2f274dd1e5e04e27514c620891c95c1 Mon Sep 17 00:00:00 2001 From: Luke Karrys Date: Wed, 7 Dec 2022 16:08:29 -0700 Subject: [PATCH] chore: fix windows tests --- package.json | 3 ++- test/write.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 68395ac..19db744 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,8 @@ "nyc-arg": [ "--exclude", "tap-snapshots/**" - ] + ], + "timeout": 600 }, "engines": { "node": "^14.17.0 || ^16.13.0 || >=18.0.0" diff --git a/test/write.js b/test/write.js index 3e2b85d..6fe54a0 100644 --- a/test/write.js +++ b/test/write.js @@ -170,7 +170,7 @@ t.test('mode', t => { const check = t => { t.equal(fs.readFileSync(p, 'utf8'), 'ok') - t.equal(fs.statSync(p).mode & 0o777, 0o700) + t.equal(fs.statSync(p).mode & 0o777, process.platform === 'win32' ? 0o666 : 0o700) fs.unlinkSync(p) t.end() }