From 92fcaa2cf84a669b7cec0b52ecea0a6344009b4e Mon Sep 17 00:00:00 2001 From: Julian R <56316686+julianmrodri@users.noreply.github.com> Date: Fri, 20 Oct 2023 09:44:41 -0300 Subject: [PATCH] fix tests --- test/Revenues.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/Revenues.test.ts b/test/Revenues.test.ts index 71c175b62..f4bcf4b8d 100644 --- a/test/Revenues.test.ts +++ b/test/Revenues.test.ts @@ -563,6 +563,9 @@ describe(`Revenues - P${IMPLEMENTATION}`, () => { expect(await rsr.balanceOf(rsrTrader.address)).to.equal(0) expect(await rsr.balanceOf(rTokenTrader.address)).to.equal(0) + // Advance to the end of noop period + await advanceTime(Number(ONE_PERIOD)) + await expectEvents(backingManager.forwardRevenue([rsr.address]), [ { contract: rsr, @@ -706,6 +709,7 @@ describe(`Revenues - P${IMPLEMENTATION}`, () => { // 1. StRSR.payoutRewards() const stRSRBal = await rsr.balanceOf(stRSR.address) await rsr.connect(owner).mint(rsrTrader.address, issueAmount) + await advanceTime(Number(ONE_PERIOD)) await expect(rsrTrader.distributeTokenToBuy()).to.emit(stRSR, 'RewardsPaid') const expectedAmountStRSR = stRSRBal.add(issueAmount) expect(await rsr.balanceOf(stRSR.address)).to.be.closeTo(expectedAmountStRSR, 100)