Skip to content

Commit

Permalink
retry tests
Browse files Browse the repository at this point in the history
  • Loading branch information
julianmrodri committed Mar 16, 2023
1 parent d1d886b commit 19d331e
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions test/integration/mainnet-test/StaticATokens.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,22 +69,23 @@ describeFork(`Static ATokens - Mainnet Check - Mainnet Forking P${IMPLEMENTATION

let chainId: number

describe('Static ATokens', () => {
const setup = async (blockNumber: number) => {
// Use Mainnet fork
await hre.network.provider.request({
method: 'hardhat_reset',
params: [
{
forking: {
jsonRpcUrl: useEnv('MAINNET_RPC_URL'),
blockNumber: blockNumber,
},
// Setup test environment
const setup = async (blockNumber: number) => {
// Use Mainnet fork
await hre.network.provider.request({
method: 'hardhat_reset',
params: [
{
forking: {
jsonRpcUrl: useEnv('MAINNET_RPC_URL'),
blockNumber: blockNumber,
},
],
})
}
},
],
})
}

describe('Static ATokens', () => {
before(async () => {
await setup(forkBlockNumber['mainnet-deployment'])

Expand All @@ -95,8 +96,8 @@ describeFork(`Static ATokens - Mainnet Check - Mainnet Forking P${IMPLEMENTATION
})

beforeEach(async () => {
;[, , , addr1] = await ethers.getSigners()
await loadFixture(defaultFixture)
;[, , , addr1] = await ethers.getSigners()

// Get tokens
dai = <ERC20Mock>(
Expand Down

0 comments on commit 19d331e

Please sign in to comment.