1
0
forked from mico/idle_moloch

Fixes broken test

This commit is contained in:
mic0 2024-10-26 13:16:34 +02:00
parent 203ebd3e97
commit fefa2641e4
Signed by: mico
GPG Key ID: A3F8023524CF1C8D

View File

@ -148,6 +148,7 @@ contract raid_geldTest is Test {
// bought 1 moloch_denier // bought 1 moloch_denier
raid_geld.addUnit(0, 1); raid_geld.addUnit(0, 1);
vm.warp(block.timestamp + 15);
uint256 balance = raid_geld.balanceOf(player1); uint256 balance = raid_geld.balanceOf(player1);
@ -161,7 +162,7 @@ contract raid_geldTest is Test {
assertLt(balance, newBalance); assertLt(balance, newBalance);
// After wait time passes raid should bring in profits again // 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(); raid_geld.raid();
// Balance should reflect that // Balance should reflect that