From 6cbf73281c38f15b7cba547a4be7dff7371db91d Mon Sep 17 00:00:00 2001 From: Felix Staud Date: Wed, 17 Jul 2024 16:38:25 -0700 Subject: [PATCH] add retries to quick-draw tests --- src/test/abilities/quick_draw.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/abilities/quick_draw.test.ts b/src/test/abilities/quick_draw.test.ts index 884b108381d..aa66d7e052f 100644 --- a/src/test/abilities/quick_draw.test.ts +++ b/src/test/abilities/quick_draw.test.ts @@ -52,7 +52,7 @@ describe("Abilities - Quick Draw", () => { expect(pokemon.battleData.abilitiesApplied).contain(Abilities.QUICK_DRAW); }, 20000); - test("does not triggered by non damage moves", async () => { + test("does not triggered by non damage moves", { timeout: 20000, retry: 5 }, async () => { await game.startBattle([Species.SLOWBRO]); const pokemon = game.scene.getPlayerPokemon(); @@ -67,7 +67,7 @@ describe("Abilities - Quick Draw", () => { expect(pokemon.isFainted()).toBe(true); expect(enemy.isFainted()).toBe(false); expect(pokemon.battleData.abilitiesApplied).not.contain(Abilities.QUICK_DRAW); - }, 20000); + }); test("does not increase priority", async () => { vi.spyOn(Overrides, "OPP_MOVESET_OVERRIDE", "get").mockReturnValue(Array(4).fill(Moves.EXTREME_SPEED));