Skip to content

Commit

Permalink
fix: Resolve 1 lint error by adding await to retry() method in test
Browse files Browse the repository at this point in the history
error  Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator  @typescript-eslint/no-floating-promises
  • Loading branch information
ngbrown committed Aug 8, 2023
1 parent 1f33a34 commit 2a34e48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/remix-dev/__tests__/utils/withApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ export default async <Result>(
// errors when attempting to removing the temporary directory.
// Retrying a couple times seems to get it to succeed.
// See https://github.com/jprichardson/node-fs-extra/issues?q=EBUSY%3A+resource+busy+or+locked%2C+rmdir
retry(async () => await fse.remove(TEMP_DIR), 3, 200);
await retry(async () => await fse.remove(TEMP_DIR), 3, 200);
}
};

0 comments on commit 2a34e48

Please sign in to comment.