From 9354c53490b20bbc7264e76a6de65bcf0607f40f Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Tue, 28 Jul 2020 16:35:44 +1000 Subject: [PATCH] drop errors when not being able to delete the tmpDir --- test/app/logging_test.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/app/logging_test.js b/test/app/logging_test.js index 82f6cd723..bfdf20fac 100644 --- a/test/app/logging_test.js +++ b/test/app/logging_test.js @@ -28,7 +28,12 @@ describe('app/logging', () => { afterEach(done => { // we need the unsafe option to recursively remove the directory - tmpDir.removeCallback(done); + try { + tmpDir.removeCallback(done); + } catch (e) { + // eslint-disable-next-line no-console + console.error('removeCallback failed with ', e); + } }); describe('#isLineAfterDate', () => {