Skip to content

Commit a67ad16

Browse files
committed
fixup! fs: improve error performance of chownSync
1 parent 1aea2c1 commit a67ad16

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

benchmark/fs/bench-chownSync.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ const fs = require('fs');
55
const tmpdir = require('../../test/common/tmpdir');
66
tmpdir.refresh();
77

8+
// Windows does not have `getuid` or `getgid`.
9+
if (process.platform === 'win32') {
10+
return;
11+
}
12+
813
const tmpfile = tmpdir.resolve(`.existing-file-${process.pid}`);
914
fs.writeFileSync(tmpfile, 'this-is-for-a-benchmark', 'utf8');
1015

0 commit comments

Comments
 (0)