Skip to content

Commit

Permalink
fix test to new spec
Browse files Browse the repository at this point in the history
  • Loading branch information
3esmit committed Feb 19, 2024
1 parent 4c1979e commit b551bfe
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions test/StakeManager.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -170,21 +170,6 @@ contract LockTest is StakeManagerTest {
userVault.stake(100, lockTime);
}

function test_RevertWhen_DecreasingLockTime() public {
// ensure user has funds
deal(stakeToken, testUser, 1000);
StakeVault userVault = _createTestVault(testUser);

vm.startPrank(testUser);
// ensure user vault can spend user tokens
ERC20(stakeToken).approve(address(userVault), 100);

uint256 lockTime = stakeManager.MIN_LOCKUP_PERIOD() + 1;
userVault.stake(100, lockTime);

vm.expectRevert(StakeManager.StakeManager__DecreasingLockTime.selector);
userVault.lock(1);
}
}

contract LeaveTest is StakeManagerTest {
Expand Down

0 comments on commit b551bfe

Please sign in to comment.