Skip to content

Commit

Permalink
test: fix file path in permission symlink test
Browse files Browse the repository at this point in the history
PR-URL: #46859
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
  • Loading branch information
LiviaMedeiros committed Mar 1, 2023
1 parent b509e01 commit 4a7c3e9
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4a7c3e9

Please sign in to comment.