Skip to content

Commit

Permalink
test: Rename test helper from _allocateNothing to _tryAllocateNothing
Browse files Browse the repository at this point in the history
  • Loading branch information
bingen committed Nov 25, 2024
1 parent 6038b8f commit 4f148fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/BribeInitiative.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ contract BribeInitiativeTest is Test, MockStakingV1Deployer {

vm.warp(block.timestamp + EPOCH_DURATION);

_allocateNothing(user1);
_tryAllocateNothing(user1);

(uint88 totalLQTYAllocated,) = bribeInitiative.totalLQTYAllocatedByEpoch(governance.epoch());
(uint88 userLQTYAllocated,) = bribeInitiative.lqtyAllocatedByUserAtEpoch(user1, governance.epoch());
Expand Down Expand Up @@ -863,7 +863,7 @@ contract BribeInitiativeTest is Test, MockStakingV1Deployer {

vm.warp(block.timestamp + EPOCH_DURATION);

_allocateNothing(user1);
_tryAllocateNothing(user1);

(uint88 totalLQTYAllocated,) = bribeInitiative.totalLQTYAllocatedByEpoch(governance.epoch());
(uint88 userLQTYAllocated,) = bribeInitiative.lqtyAllocatedByUserAtEpoch(user1, governance.epoch());
Expand Down Expand Up @@ -936,7 +936,7 @@ contract BribeInitiativeTest is Test, MockStakingV1Deployer {
vm.stopPrank();
}

function _allocateNothing(address staker) internal {
function _tryAllocateNothing(address staker) internal {
vm.startPrank(staker);
address[] memory initiativesToReset;

Expand Down

0 comments on commit 4f148fe

Please sign in to comment.