From 3028fa703ae59ec14383d5b1ae1f2b0844ae16b7 Mon Sep 17 00:00:00 2001 From: buji Date: Sun, 19 Nov 2017 00:33:07 +0800 Subject: [PATCH] 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: https://github.com/nodejs/node/pull/17119 Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Rich Trott Reviewed-By: Daniel Bevenius --- test/parallel/test-fs-mkdir.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/test/parallel/test-fs-mkdir.js b/test/parallel/test-fs-mkdir.js index 679e0b255ace92..21f8774e696aa7 100644 --- a/test/parallel/test-fs-mkdir.js +++ b/test/parallel/test-fs-mkdir.js @@ -36,8 +36,6 @@ common.refreshTmpDir(); { const pathname = `${common.tmpDir}/test1`; - unlink(pathname); - fs.mkdir(pathname, common.mustCall(function(err) { assert.strictEqual(err, null); assert.strictEqual(common.fileExists(pathname), true); @@ -51,8 +49,6 @@ common.refreshTmpDir(); { const pathname = `${common.tmpDir}/test2`; - unlink(pathname); - fs.mkdir(pathname, 0o777, common.mustCall(function(err) { assert.strictEqual(err, null); assert.strictEqual(common.fileExists(pathname), true);