Skip to content

Commit

Permalink
fix extreme tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmckelvy1 committed Aug 2, 2023
1 parent 8629e86 commit 329fef8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/ZTradingExtremes.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,9 @@ describeExtreme(`Trading Extreme Values (${SLOW ? 'slow mode' : 'fast mode'})`,
const noThrottle = { amtRate: MAX_THROTTLE_AMT_RATE, pctRate: 0 }
await rToken.setIssuanceThrottleParams(noThrottle)
await rToken.setRedemptionThrottleParams(noThrottle)

await advanceTime(12 * 5 * 60) // 60 minutes, charge fully

await rToken.connect(addr1).issue(rTokenSupply)
expect(await rToken.balanceOf(addr1.address)).to.equal(rTokenSupply)

Expand Down Expand Up @@ -651,6 +654,9 @@ describeExtreme(`Trading Extreme Values (${SLOW ? 'slow mode' : 'fast mode'})`,
const noThrottle = { amtRate: MAX_THROTTLE_AMT_RATE, pctRate: 0 }
await rToken.setIssuanceThrottleParams(noThrottle)
await rToken.setRedemptionThrottleParams(noThrottle)

await advanceTime(12 * 5 * 60) // 60 minutes, charge fully

Check failure on line 659 in test/ZTradingExtremes.test.ts

View workflow job for this annotation

GitHub Actions / Lint Checks

Delete `······`
await rToken.connect(addr1).issue(rTokenSupply)
expect(await rToken.balanceOf(addr1.address)).to.equal(rTokenSupply)

Expand Down

0 comments on commit 329fef8

Please sign in to comment.