Skip to content

Commit 7c57ab7

Browse files
ah-yuMylesBorins
authored andcommitted
test: dont need to remove nonexistent directory
the TempDirection is empty , so tempdir/test1 and tempdir/test2 are nonexistent. we dont need to delete nonexistent directories. PR-URL: #17119 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]>
1 parent 5f522a1 commit 7c57ab7

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

test/parallel/test-fs-mkdir.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ common.refreshTmpDir();
1515
{
1616
const pathname = `${common.tmpDir}/test1`;
1717

18-
unlink(pathname);
19-
2018
fs.mkdir(pathname, common.mustCall(function(err) {
2119
assert.strictEqual(err, null);
2220
assert.strictEqual(common.fileExists(pathname), true);
@@ -30,8 +28,6 @@ common.refreshTmpDir();
3028
{
3129
const pathname = `${common.tmpDir}/test2`;
3230

33-
unlink(pathname);
34-
3531
fs.mkdir(pathname, 0o777, common.mustCall(function(err) {
3632
assert.strictEqual(err, null);
3733
assert.strictEqual(common.fileExists(pathname), true);

0 commit comments

Comments
 (0)