From 6462480c3a922e06de32699e580b4be0045479b0 Mon Sep 17 00:00:00 2001 From: "Andrew W. Harn" Date: Fri, 23 Feb 2024 15:47:09 +0000 Subject: [PATCH] Fix one more rimraf issue Signed-off-by: Andrew W. Harn --- .../__tests__/__system__/DownloadJobs.system.test.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/zosjobs/__tests__/__system__/DownloadJobs.system.test.ts b/packages/zosjobs/__tests__/__system__/DownloadJobs.system.test.ts index 6fd7dbdb97..78f99abf9b 100644 --- a/packages/zosjobs/__tests__/__system__/DownloadJobs.system.test.ts +++ b/packages/zosjobs/__tests__/__system__/DownloadJobs.system.test.ts @@ -309,10 +309,8 @@ describe("Download Jobs - System tests - Encoded", () => { SYSAFF = testEnvironment.systemTestProperties.zosjobs.sysaff; }); - afterEach((done: any) => { // eslint-disable-line jest/no-done-callback - require("rimraf")(outputDirectory, {maxBusyTries: 10}, (err?: Error) => { - done(err); - }); + afterEach(() => { + require("rimraf").sync(outputDirectory, {maxBusyTries: 10}); }); afterAll(async () => {