Skip to content

Commit

Permalink
test: restrict fuzzing range to make two tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
xorsal committed Nov 18, 2024
1 parent 97183da commit 8b25aaa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/unit/HorizonAccountingExtension.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -826,6 +826,8 @@ contract HorizonAccountingExtension_Unit_ClaimEscalationReward is HorizonAccount
uint256 _bondSize,
uint256 _amount
) public {
vm.assume(_amount >= _bondSize);

vm.assume(_pledger != _slashedUser);
vm.assume(_slashedUser != _notSlashedUser);

Expand Down Expand Up @@ -905,6 +907,8 @@ contract HorizonAccountingExtension_Unit_ClaimEscalationReward is HorizonAccount
uint256 _bondSize,
uint256 _amount
) public {
vm.assume(_amount >= _bondSize);

vm.assume(_pledger != _slashedUser);
vm.assume(_slashedUser != _notSlashedUser);
// bound input parameters
Expand Down

0 comments on commit 8b25aaa

Please sign in to comment.