Skip to content

Commit

Permalink
test: fix failing test case after changing revert reason
Browse files Browse the repository at this point in the history
  • Loading branch information
danielattilasimon committed Dec 3, 2024
1 parent 1fcda14 commit 44cbb26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/Governance.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -568,15 +568,15 @@ abstract contract GovernanceTest is Test {
vm.warp(block.timestamp + governance.EPOCH_DURATION());

// should revert if the initiative isn't registered
vm.expectRevert("Governance: initiative-not-registered");
vm.expectRevert("Governance: cannot-unregister-initiative");
governance.unregisterInitiative(baseInitiative3);

governance.registerInitiative(baseInitiative3);
uint16 atEpoch = governance.registeredInitiatives(baseInitiative3);
assertEq(atEpoch, governance.epoch());

// should revert if the initiative is still in the registration warm up period
vm.expectRevert("Governance: initiative-in-warm-up");
vm.expectRevert("Governance: cannot-unregister-initiative");
/// @audit should fail due to not waiting enough time
governance.unregisterInitiative(baseInitiative3);

Expand Down

0 comments on commit 44cbb26

Please sign in to comment.