Skip to content

Commit

Permalink
Closes Uniswap#191
Browse files Browse the repository at this point in the history
  • Loading branch information
omarish committed Jun 9, 2021
1 parent eb47c1f commit 9be377a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/unit/Stakes.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -610,9 +610,10 @@ describe('unit/Stakes', () => {
})

it('non-owner tries to unstake before the end time', async () => {
await expect(subject(actors.lpUser2())).to.revertedWith(
'UniswapV3Staker::unstakeToken: only owner can withdraw token'
)
const nonOwner = actors.lpUser2()
await Time.setAndMine(timestamps.startTime + 100)
await expect(subject(nonOwner)).to.revertedWith('UniswapV3Staker::unstakeToken: only owner can withdraw token')
expect(await blockTimestamp(), 'test setup: after end time').to.be.lt(timestamps.endTime)
})
})
})
Expand Down

0 comments on commit 9be377a

Please sign in to comment.