Skip to content

Commit

Permalink
fix flaky test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaoticWalrus committed Mar 28, 2023
1 parent 0a01ec3 commit c3a7587
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/test/Delegation.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -430,8 +430,7 @@ contract DelegationTests is EigenLayerTestHelper {
}

/// @notice This function checks that you can only delegate to an address that is already registered.
function testDelegateToInvalidOperator(address _staker, address _unregisteredOperator) public{

function testDelegateToInvalidOperator(address _staker, address _unregisteredOperator) public fuzzedAddress(_staker) {
vm.startPrank(_staker);
cheats.expectRevert(bytes("DelegationManager._delegate: operator has not yet registered as a delegate"));
delegation.delegateTo(_unregisteredOperator);
Expand Down

0 comments on commit c3a7587

Please sign in to comment.