Skip to content

Commit

Permalink
don't retry in screenshot tests (will fail anyway now)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippotto committed Jan 18, 2023
1 parent d781f78 commit bc8969b
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,11 @@ async function withRetry(
// eslint-disable-next-line no-await-in-loop
const condition = await testFn();

if (condition || i === retryCount - 1) {
// Either the test passed or we executed the last attempt
resolveFn(condition);
return;
}
// if (condition || i === retryCount - 1) {
// Either the test passed or we executed the last attempt
resolveFn(condition);
return;
// }

console.error(`Test failed, retrying. This will be attempt ${i + 2}/${retryCount}.`);
}
Expand Down

0 comments on commit bc8969b

Please sign in to comment.