From cf92f9953887117d9a65466f983f7ecb6f9d68f4 Mon Sep 17 00:00:00 2001 From: Bayological <6872903+bayological@users.noreply.github.com> Date: Wed, 17 Jul 2024 14:57:45 -0500 Subject: [PATCH] chore: Skip Airgrab test on mainnet chain --- test/Airgrab.test.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/Airgrab.test.ts b/test/Airgrab.test.ts index 3f53b73..86b6bfc 100644 --- a/test/Airgrab.test.ts +++ b/test/Airgrab.test.ts @@ -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; @@ -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 () {