Skip to content

Commit

Permalink
fix: adjust tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
clement-ux committed Feb 4, 2025
1 parent bb02e83 commit bededf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/test/harvest/simple-harvester.mainnet.fork-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ describe("ForkTest: SimpleHarvester", function () {
.connect(strategist)["harvestAndTransfer(address)"](nativeStakingSSVStrategy.address);

const balanceAfterWETH = await weth.balanceOf(oethFixedRateDripper.address);
expect(balanceAfterWETH).to.be.gt(balanceBeforeWETH);
expect(balanceAfterWETH).to.be.gte(balanceBeforeWETH.add(oethUnits("1")));
});

it("Should Harvest and transfer rewards (out of WETH) as governor", async () => {
Expand Down Expand Up @@ -122,7 +122,7 @@ describe("ForkTest: SimpleHarvester", function () {
.connect(timelock)["harvestAndTransfer(address)"](nativeStakingSSVStrategy.address);

const balanceAfterWETH = await weth.balanceOf(oethFixedRateDripper.address);
expect(balanceAfterWETH).to.be.gt(balanceBeforeWETH);
expect(balanceAfterWETH).to.be.gte(balanceBeforeWETH.add(oethUnits("1")));
});

it("Should revert if strategy is not authorized", async () => {
Expand Down

0 comments on commit bededf7

Please sign in to comment.