Skip to content

Commit

Permalink
test: improve test-fs-existssync-false.js
Browse files Browse the repository at this point in the history
PR-URL: #31883
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
himself65 authored and MylesBorins committed Mar 11, 2020
1 parent 3fa57ee commit ceca1c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/parallel/test-fs-existssync-false.js
@@ -1,5 +1,5 @@
'use strict';
require('../common');
const common = require('../common');
const tmpdir = require('../common/tmpdir');

// This test ensures that fs.existsSync doesn't incorrectly return false.
Expand Down Expand Up @@ -31,6 +31,6 @@ for (let i = 0; i < 50; i++) {
assert(fs.existsSync(dir), 'Directory is not accessible');

// Test if file exists asynchronously
fs.access(dir, function(err) {
fs.access(dir, common.mustCall((err) => {
assert.ifError(err);
});
}));

0 comments on commit ceca1c3

Please sign in to comment.