From 4ab7b1cac1a362288129a53c87ae04b0e5fd5447 Mon Sep 17 00:00:00 2001 From: Pavel Feldman Date: Thu, 10 Jun 2021 22:23:02 -0700 Subject: [PATCH] cherry-pick(release-1.120: do not fail when removing non-existent video Cherry-Pick #7060 SHA e4d93cd1f39c85f4f6460107ba7878fb5edcf513 Fixes #7058 --- 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 1859a2fda27b1..8db7954274795 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. + } })); } },