From 9c07499f2e1734060666fcbce777f66a66c88840 Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Fri, 11 Jun 2021 11:00:06 -0700 Subject: [PATCH] cherry-pick(release-1.120: do not fail when removing non-existent video (#7072) Cherry-Pick #7060 SHA e4d93cd1f39c85f4f6460107ba7878fb5edcf513 Fixes #7058 Co-authored-by: Pavel Feldman --- 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. + } })); } },