Skip to content

Commit

Permalink
Exclude launch tests from integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Psirex committed Jul 18, 2023
1 parent 8a75235 commit 0920261
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,14 @@ scenario("Arbitrum :: Launch integration test", ctx)

async function ctx() {
const networkName = env.network("TESTING_ARB_NETWORK", "mainnet");
const { l1Provider, l2Provider, l1ERC20TokenGateway, l1DevMultisig } =
await arbitrum.testing(networkName).getIntegrationTestSetup();
const { l1Provider, l2Provider, l1ERC20TokenGateway } = await arbitrum
.testing(networkName)
.getIntegrationTestSetup();

const hasDeployedContracts = testing.env.USE_DEPLOYED_CONTRACTS(false);
const l1DevMultisig = hasDeployedContracts
? await testing.impersonate(testing.env.L1_DEV_MULTISIG(), l1Provider)
: testing.accounts.deployer(l1Provider);

const l1Snapshot = await l1Provider.send("evm_snapshot", []);
const l2Snapshot = await l2Provider.send("evm_snapshot", []);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,14 @@ scenario("Optimism :: Launch integration test", ctxFactory)
async function ctxFactory() {
const networkName = env.network("TESTING_OPT_NETWORK", "mainnet");

const { l1Provider, l2Provider, l1DevMultisig, l1ERC20TokenBridge } =
await optimism.testing(networkName).getIntegrationTestSetup();
const { l1Provider, l2Provider, l1ERC20TokenBridge } = await optimism
.testing(networkName)
.getIntegrationTestSetup();

const hasDeployedContracts = testing.env.USE_DEPLOYED_CONTRACTS(false);
const l1DevMultisig = hasDeployedContracts
? await testing.impersonate(testing.env.L1_DEV_MULTISIG(), l1Provider)
: testing.accounts.deployer(l1Provider);

const l1Snapshot = await l1Provider.send("evm_snapshot", []);
const l2Snapshot = await l2Provider.send("evm_snapshot", []);
Expand Down

0 comments on commit 0920261

Please sign in to comment.