Skip to content

Commit

Permalink
feat: only attach recording for first try
Browse files Browse the repository at this point in the history
  • Loading branch information
cmorten committed Dec 29, 2023
1 parent a61b4f2 commit fbc30c2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/attachRecording.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit fbc30c2

Please sign in to comment.