Skip to content

Commit

Permalink
chore: revert test change
Browse files Browse the repository at this point in the history
  • Loading branch information
pmmmwh committed Jul 11, 2024
1 parent 3ed0f57 commit f6fb083
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,7 @@ test('does not throw EINVAL - async', async t => {

let count = 0;
while (count !== totalAttempts) {
fs.mkdirSync(path.dirname(nestedFile), {recursive: true});
fs.writeFileSync(nestedFile, '');
fs.mkdirSync(nestedFile, {recursive: true});

// eslint-disable-next-line no-await-in-loop
const removed = await deleteAsync('**/*', {
Expand Down Expand Up @@ -160,8 +159,7 @@ test('does not throw EINVAL - sync', t => {

let count = 0;
while (count !== totalAttempts) {
fs.mkdirSync(path.dirname(nestedFile), {recursive: true});
fs.writeFileSync(nestedFile, '');
fs.mkdirSync(nestedFile, {recursive: true});

const removed = deleteSync('**/*', {
cwd: t.context.tmp,
Expand Down

0 comments on commit f6fb083

Please sign in to comment.