Skip to content

Commit ac300f4

Browse files
authored
chore: Fix governance vote test (#17023)
Fix for [this flake](http://ci.aztec-labs.com/70cbccf418a00d04): ``` 17:52:56 Failing tests: 17:52:56 Encountered 1 failing test in test/governance/governance/vote.t.sol:VoteTest 17:52:56 [FAIL: Governance__CallerCannotBeSelf(); counterexample: calldata=0x8147d0ea000000000000000000000000c7183455a4c133ae270771860664b6b7ec320bb100000000000000000000000000000000000000000000000000000000aabc2497676247b4195b3fe545499177befc02b4b4bebd3805a2283b30defcae63d546620000000000000000000000000000000000000000000000000000000000000001 args=[0xc7183455a4C133Ae270771860664b6B7ec320bB1, 2864456855 [2.864e9], 46761869295876087080540616901206191828233224650581977639405101308294462785122 [4.676e76], true]] test_GivenAmountSmallerOrEqAvailablePower(address,uint256,uint256,bool) (runs: 164, μ: 419884, ~: 419972) ```
2 parents 4502f07 + e7136e6 commit ac300f4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

l1-contracts/test/governance/governance/vote.t.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ contract VoteTest is GovernanceBase {
9797

9898
modifier givenStateIsActive(address _voter, uint256 _depositPower) {
9999
vm.assume(_voter != address(0));
100+
vm.assume(_voter != address(governance));
100101
depositPower = bound(_depositPower, 1, type(uint128).max);
101102

102103
token.mint(_voter, depositPower);

0 commit comments

Comments
 (0)