mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 11:00:43 +00:00
fix failing test in DeletUnitExecution.test.ts by setting delete unit cooldown and duration in setup
This commit is contained in:
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user