From fbc30c2668a92c52cd901b1bbfd44c9570461ec8 Mon Sep 17 00:00:00 2001 From: cmorten Date: Fri, 29 Dec 2023 10:27:58 +0000 Subject: [PATCH] feat: only attach recording for first try --- src/attachRecording.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/attachRecording.ts b/src/attachRecording.ts index 0484213..2701fde 100644 --- a/src/attachRecording.ts +++ b/src/attachRecording.ts @@ -24,6 +24,11 @@ export const attachRecording = async ({ return; } + // Only attach if not a retry + if (test.info().retry > 0) { + return; + } + for (let i = 0; i < EXISTS_RETRIES; i++) { try { accessSync(path, constants.F_OK);