From fefa2641e4cca44c303da082f90be3175e546465 Mon Sep 17 00:00:00 2001 From: Mitja Belak Date: Sat, 26 Oct 2024 13:16:34 +0200 Subject: [PATCH] Fixes broken test --- test/RaidGeld.t.sol | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/RaidGeld.t.sol b/test/RaidGeld.t.sol index d1f5d48..718ec9e 100644 --- a/test/RaidGeld.t.sol +++ b/test/RaidGeld.t.sol @@ -148,6 +148,7 @@ contract raid_geldTest is Test { // bought 1 moloch_denier raid_geld.addUnit(0, 1); + vm.warp(block.timestamp + 15); uint256 balance = raid_geld.balanceOf(player1); @@ -161,7 +162,7 @@ contract raid_geldTest is Test { assertLt(balance, newBalance); // After wait time passes raid should bring in profits again - vm.warp(block.timestamp + raid_geld.RAID_WAIT()); + vm.warp(block.timestamp + 15); raid_geld.raid(); // Balance should reflect that