Skip to content

Commit

Permalink
test: call fsPromises.lchown() on non-Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Masashi Hirano authored and TimothyGu committed Jul 30, 2018
1 parent d195aca commit b1183ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-fs-promises.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ function verifyStatObject(stat) {
if (common.canCreateSymLink()) {
const newLink = path.resolve(tmpDir, 'baz3.js');
await symlink(newPath, newLink);
if (common.isOSX) {
if (!common.isWindows) {
await lchown(newLink, process.getuid(), process.getgid());
}
stats = await lstat(newLink);
Expand Down

0 comments on commit b1183ac

Please sign in to comment.