Skip to content

Commit

Permalink
chore: Skip Airgrab test on mainnet chain
Browse files Browse the repository at this point in the history
  • Loading branch information
bayological committed Jul 17, 2024
1 parent d5a1cd1 commit cf92f99
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/Airgrab.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
import { getMessage } from './utils/utils';
import { HardhatEthersSigner } from '@nomicfoundation/hardhat-ethers/signers';
import 'dotenv/config';
import { networks } from '../config';

describe('Airgrab', function () {
const { provider } = ethers;
Expand All @@ -39,6 +40,11 @@ describe('Airgrab', function () {
// reset the fork state between tests to not pollute the state
// @ts-expect-error - forking doesn't exist in hre for some reason
await helpers.reset(hre.network.config.forking.url);

// if this chain id is mainnet skip the test.
if (hre.network.config.chainId === networks.celo.chainId) {
this.skip();
}
});

before(async function () {
Expand Down

0 comments on commit cf92f99

Please sign in to comment.