diff --git a/shared/packages/worker/src/worker/workers/windowsWorker/expectationHandlers/__tests__/ffmpeg.spec.ts b/shared/packages/worker/src/worker/workers/windowsWorker/expectationHandlers/__tests__/ffmpeg.spec.ts index 91f7b6fd..7196c7d0 100644 --- a/shared/packages/worker/src/worker/workers/windowsWorker/expectationHandlers/__tests__/ffmpeg.spec.ts +++ b/shared/packages/worker/src/worker/workers/windowsWorker/expectationHandlers/__tests__/ffmpeg.spec.ts @@ -21,6 +21,7 @@ function createLocalFolderAccessorHandleMock(fullPath: string): LocalFolderAcces { type: LocalFolderAccessorHandle.type, fullPath: fullPath, + filePath: path.basename(fullPath), }, { fallbackMockImplementation: () => { @@ -157,7 +158,7 @@ runForEachFFMpegRelease(() => { const fileStat = await fsStat(outputPath) expect(fileStat.isFile()).toBeTruthy() } finally { - await fsUnlink(outputPath) + await fsUnlink(outputPath).catch(() => null) } }) @@ -181,7 +182,7 @@ runForEachFFMpegRelease(() => { const fileStat = await fsStat(outputPath) expect(fileStat.isFile()).toBeTruthy() } finally { - await fsUnlink(outputPath) + await fsUnlink(outputPath).catch(() => null) } }) })