Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shahthepro committed Jan 16, 2025
1 parent f765d9a commit 0006511
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
14 changes: 10 additions & 4 deletions contracts/test/_fixture.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ const simpleOETHFixture = deployments.createFixture(async () => {
const [matt, josh, anna, domen, daniel, franck] = signers.slice(4);

if (isFork) {
governor = await ethers.provider.getSigner(governorAddr);
strategist = await ethers.provider.getSigner(multichainStrategistAddr);
governor = await impersonateAndFund(governorAddr);
strategist = await impersonateAndFund(multichainStrategistAddr);

for (const user of [matt, josh, anna, domen, daniel, franck]) {
// Everyone gets free weth
Expand Down Expand Up @@ -1003,10 +1003,16 @@ const defaultFixture = deployments.createFixture(async () => {
const [matt, josh, anna, domen, daniel, franck] = signers.slice(4);

if (isFork) {
governor = await ethers.provider.getSigner(governorAddr);
strategist = await ethers.provider.getSigner(multichainStrategistAddr);
governor = await impersonateAndFund(governorAddr);
strategist = await impersonateAndFund(multichainStrategistAddr);
timelock = await impersonateAndFund(timelockAddr);
oldTimelock = await impersonateAndFund(addresses.mainnet.OldTimelock);

// Just a hack to get around using `.getAddress()` on the signer
governor.address = governorAddr;
strategist.address = multichainStrategistAddr;
timelock.address = timelockAddr;
oldTimelock.address = addresses.mainnet.OldTimelock;
} else {
timelock = governor;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const { setERC20TokenBalance } = require("../_fund");

const { loadDefaultFixture } = require("../_fixture");

describe("ForkTest: CurvePoolBooster", function () {
describe("ForkTest: SimpleHarvester", function () {
this.timeout(0);

// Retry up to 3 times on CI
Expand Down

0 comments on commit 0006511

Please sign in to comment.