diff --git a/test/parallel/test-permission-deny-fs-symlink-target-write.js b/test/parallel/test-permission-deny-fs-symlink-target-write.js index 4d508a2d525cea..931dccddba157a 100644 --- a/test/parallel/test-permission-deny-fs-symlink-target-write.js +++ b/test/parallel/test-permission-deny-fs-symlink-target-write.js @@ -53,9 +53,7 @@ fs.writeFileSync(path.join(readWriteFolder, 'file'), 'NO evil file contents'); })); // App will be able to write to the symlink - fs.writeFile('file', 'some content', (err) => { - assert.ifError(err); - }); + fs.writeFile(path.join(writeOnlyFolder, 'link-to-read-write'), 'some content', common.mustSucceed()); }); // App won't be able to symlink to a readOnlyFolder