Skip to content

Commit

Permalink
[core] fix cleanup logic for rolling file tests (elastic#90797) (elas…
Browse files Browse the repository at this point in the history
…tic#91113)

* fix cleanup for rolling file tests

* do not swallow errors

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Mikhail Shustov <restrry@gmail.com>
  • Loading branch information
kibanamachine and mshustov committed Feb 11, 2021
1 parent a4a9fe5 commit cc5f74b
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,10 @@ describe('RollingFileAppender', () => {
});

afterEach(async () => {
try {
await rmdir(testDir);
} catch (e) {
/* trap */
if (testDir) {
await rmdir(testDir, { recursive: true });
}

if (root) {
await root.shutdown();
}
Expand Down

0 comments on commit cc5f74b

Please sign in to comment.