Skip to content

Commit

Permalink
Fail the first one
Browse files Browse the repository at this point in the history
  • Loading branch information
gregberge committed Jun 16, 2024
1 parent 9d9df12 commit 1a5e63a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/sharding.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ test("has title", async ({ page }) => {

await argosScreenshot(page, "sharding");

if (process.env.GITHUB_RUN_ATTEMPT !== "2") {
if (Number(process.env.GITHUB_RUN_ATTEMPT) === 1) {
// Fail the test on the first attempt.
throw new Error("Failing on purpose");
}
Expand Down

0 comments on commit 1a5e63a

Please sign in to comment.