From e4d93cd1f39c85f4f6460107ba7878fb5edcf513 Mon Sep 17 00:00:00 2001 From: Pavel Feldman Date: Thu, 10 Jun 2021 22:23:02 -0700 Subject: [PATCH] fix(video): do not fail when removing non-existent video (#7060) --- src/test/index.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/test/index.ts b/src/test/index.ts index 1859a2fda2..8db7954274 100644 --- a/src/test/index.ts +++ b/src/test/index.ts @@ -162,8 +162,12 @@ export const test = _baseTest.extend {}); + try { + const videoPath = await video.path(); + await fs.promises.unlink(videoPath); + } catch (e) { + // Silent catch. + } })); } },