Skip to content

Commit

Permalink
feat: add test to assert failure
Browse files Browse the repository at this point in the history
  • Loading branch information
bowenli86 committed Feb 7, 2025
1 parent 26d6f1f commit c86b4dc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/test/unit/AllocationManagerUnit.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3834,6 +3834,13 @@ contract AllocationManagerUnitTests_createOperatorSets is AllocationManagerUnitT
allocationManager.createOperatorSets(defaultAVS, CreateSetParams(defaultOperatorSet.id, defaultStrategies).toArray());
}

function testRevert_createOperatorSets_InvalidAVSWithNoMetadataRegistered(Randomness r) public rand(r) {
address avs = r.Address();
cheats.expectRevert(InvalidAVSWithNoMetadataRegistered.selector);
cheats.prank(avs);
allocationManager.createOperatorSets(avs, CreateSetParams(defaultOperatorSet.id, defaultStrategies).toArray());
}

function testFuzz_createOperatorSets_Correctness(
Randomness r
) public rand(r) {
Expand Down

0 comments on commit c86b4dc

Please sign in to comment.