Skip to content

Commit

Permalink
Fixed SimpleHarvester fork tests
Browse files Browse the repository at this point in the history
  • Loading branch information
naddison36 committed Jan 30, 2025
1 parent 236ccfc commit a67c6c4
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions contracts/test/harvest/simple-harvester.mainnet.fork-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@ describe("ForkTest: SimpleHarvester", function () {

it("Should support Strategy as governor", async () => {
const { simpleOETHHarvester, timelock } = fixture;
expect(
await simpleOETHHarvester.supportedStrategies(
addresses.mainnet.ConvexOETHAMOStrategy
)
).to.be.equal(false);
await simpleOETHHarvester
.connect(timelock)
.setSupportedStrategy(addresses.mainnet.ConvexOETHAMOStrategy, true);
Expand All @@ -50,11 +45,6 @@ describe("ForkTest: SimpleHarvester", function () {
it("Should support Strategy as strategist", async () => {
const { simpleOETHHarvester, strategist } = fixture;

expect(
await simpleOETHHarvester
.connect(strategist)
.supportedStrategies(addresses.mainnet.ConvexOETHAMOStrategy)
).to.be.equal(false);
await simpleOETHHarvester
.connect(strategist)
.setSupportedStrategy(addresses.mainnet.ConvexOETHAMOStrategy, true);
Expand Down Expand Up @@ -138,6 +128,10 @@ describe("ForkTest: SimpleHarvester", function () {
it("Should revert if strategy is not authorized", async () => {
const { simpleOETHHarvester, convexEthMetaStrategy, timelock } = fixture;

await simpleOETHHarvester
.connect(timelock)
.setSupportedStrategy(addresses.mainnet.ConvexOETHAMOStrategy, false);

await expect(
// prettier-ignore
simpleOETHHarvester
Expand Down

0 comments on commit a67c6c4

Please sign in to comment.