From 8e502f3f26dd24b056690403caab0daadfefa677 Mon Sep 17 00:00:00 2001 From: evanpelle Date: Tue, 4 Nov 2025 11:28:29 -0800 Subject: [PATCH] fix failing test in DeletUnitExecution.test.ts by setting delete unit cooldown and duration in setup --- tests/DeleteUnitExecution.test.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/DeleteUnitExecution.test.ts b/tests/DeleteUnitExecution.test.ts index a931c140b..723c4889c 100644 --- a/tests/DeleteUnitExecution.test.ts +++ b/tests/DeleteUnitExecution.test.ts @@ -67,6 +67,9 @@ describe("DeleteUnitExecution Security Tests", () => { if (!tileOwner.isPlayer() || tileOwner.id() !== player.id()) { throw new Error("Unit is not on player's territory"); } + + game.config().deleteUnitCooldown = () => 10; + game.config().deletionMarkDuration = () => 10; }); describe("Security Validations", () => {