Skip to content
This repository has been archived by the owner on Mar 11, 2022. It is now read-only.

Commit

Permalink
Fix BobaFixedSavings tests
Browse files Browse the repository at this point in the history
  • Loading branch information
boyuan-chen committed Dec 21, 2021
1 parent 7a20a8e commit 4079326
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions integration-tests/test/boba_fixed_savings.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ describe('Boba Fixed Savings', async () => {
const depositTime = stakeData.depositTimestamp
await expect(
FixedSavings.connect(env.l2Wallet.address).unstake(stakeData.stakeId)
).to.be.revertedWith('Not on unstaking period')
).to.be.revertedWith('Not in unstaking period')

// advance time until the end of lock period
const expectedLockEndTime = depositTime.add(BigNumber.from(LOCK_TIME))
Expand All @@ -351,10 +351,10 @@ describe('Boba Fixed Savings', async () => {
.sub(BigNumber.from(3600))

await moveTimeForward(timeToMove.toNumber())
// still not on unstaking period
// still not in unstaking period
await expect(
FixedSavings.connect(env.l2Wallet).unstake(stakeData.stakeId)
).to.be.revertedWith('Not on unstaking period')
).to.be.revertedWith('Not in unstaking period')
})

let preBalanceStaker
Expand Down Expand Up @@ -456,7 +456,7 @@ describe('Boba Fixed Savings', async () => {
await moveTimeForward(timeToMove.toNumber())
await expect(
FixedSavings.connect(env.l2Wallet).unstake(stakeData.stakeId)
).to.be.revertedWith('Not on unstaking period')
).to.be.revertedWith('Not in unstaking period')
// this is the start of second period
})

Expand Down

0 comments on commit 4079326

Please sign in to comment.