From 44cbb26220e4c0bc5aec75022975a26bf8ecf13e Mon Sep 17 00:00:00 2001 From: Daniel Simon Date: Tue, 3 Dec 2024 10:00:30 +0700 Subject: [PATCH] test: fix failing test case after changing revert reason --- test/Governance.t.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/Governance.t.sol b/test/Governance.t.sol index 41a43f2..6cb70ee 100644 --- a/test/Governance.t.sol +++ b/test/Governance.t.sol @@ -568,7 +568,7 @@ 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); @@ -576,7 +576,7 @@ abstract contract GovernanceTest is Test { 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);