From 46111af81141cc13bed8146fd5749fc755cdaddc Mon Sep 17 00:00:00 2001 From: Danny McCormick Date: Fri, 7 Jun 2019 17:35:33 -0400 Subject: [PATCH] Dont fail on not being able to unlink --- __tests__/installer.test.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/__tests__/installer.test.ts b/__tests__/installer.test.ts index 3ae4e182..c6e702ea 100644 --- a/__tests__/installer.test.ts +++ b/__tests__/installer.test.ts @@ -37,8 +37,12 @@ describe('installer tests', () => { }, 100000); afterAll(async () => { - await io.rmRF(toolDir); - await io.rmRF(tempDir); + try { + await io.rmRF(toolDir); + await io.rmRF(tempDir); + } finally { + console.log('Failed to remove test directories'); + } }, 100000); it('Acquires version of node if no matching version is installed', async () => {