Skip to content

Commit

Permalink
Added assume for pauser test that fuzzed pauser not already in pauser…
Browse files Browse the repository at this point in the history
… list
  • Loading branch information
jferas committed Dec 28, 2023
1 parent 6fbcac2 commit fc4ec49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/RadworksGovernor.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -1030,8 +1030,9 @@ abstract contract _Execute is ProposalTest {
}

function testFuzz_CanGrantPauserOnDrips(address _newPauser) public {
address[] memory _originalPausers = drips.allPausers();
vm.assume(!drips.isPauser(_newPauser));

address[] memory _originalPausers = drips.allPausers();
_grantNewPauserViaGovernance(_newPauser);

// Ensure the new pauser has been granted pauser role
Expand Down

0 comments on commit fc4ec49

Please sign in to comment.