Skip to content

Commit 4a7c3e9

Browse files
test: fix file path in permission symlink test
PR-URL: #46859 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]>
1 parent b509e01 commit 4a7c3e9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/parallel/test-permission-deny-fs-symlink-target-write.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,7 @@ fs.writeFileSync(path.join(readWriteFolder, 'file'), 'NO evil file contents');
5353
}));
5454

5555
// App will be able to write to the symlink
56-
fs.writeFile('file', 'some content', (err) => {
57-
assert.ifError(err);
58-
});
56+
fs.writeFile(path.join(writeOnlyFolder, 'link-to-read-write'), 'some content', common.mustSucceed());
5957
});
6058

6159
// App won't be able to symlink to a readOnlyFolder

0 commit comments

Comments
 (0)