Skip to content

Commit 4d71b55

Browse files
authored
fixed flaky test (#200)
1 parent 57e322f commit 4d71b55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/unit/UFragmentsPolicy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -822,10 +822,10 @@ describe('UFragmentsPolicy:Rebase', async function () {
822822
.setRebaseTimingParameters(60, 0, 60)
823823
await increaseTime(60)
824824
await uFragmentsPolicy.connect(orchestrator).rebase()
825-
await increaseTime(59)
826825
prevEpoch = await uFragmentsPolicy.epoch()
827826
prevTime = await uFragmentsPolicy.lastRebaseTimestampSec()
828827
await mockExternalData(INITIAL_RATE_60P_MORE, INITIAL_CPI, 1010)
828+
await increaseTime(60)
829829
})
830830

831831
it('should increment epoch', async function () {
@@ -843,7 +843,7 @@ describe('UFragmentsPolicy:Rebase', async function () {
843843
it('should update lastRebaseTimestamp', async function () {
844844
await uFragmentsPolicy.connect(orchestrator).rebase()
845845
const time = await uFragmentsPolicy.lastRebaseTimestampSec()
846-
expect(time.sub(prevTime)).to.eq(60)
846+
expect(time.sub(prevTime)).to.gte(60)
847847
})
848848

849849
it('should emit Rebase with positive requestedSupplyAdjustment', async function () {

0 commit comments

Comments
 (0)