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 <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • 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
Original file line number Diff line number Diff line change
@@ -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.