From aa53e680aeb91cb97d5f45f59d922cda0cb01900 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Tue, 16 Jan 2024 16:07:32 +0900 Subject: [PATCH] Use the external devnet over startNetwork() --- Makefile | 3 +-- packages-ts/starknet-gauntlet/test/utils/network.ts | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 911c3c140..7a1e7974d 100644 --- a/Makefile +++ b/Makefile @@ -227,11 +227,10 @@ test-integration-contracts: build-ts env-devnet-hardhat yarn test .PHONY: test-integration-gauntlet -# TODO: better network lifecycle setup - tests setup/run their own network (L1 + conflict w/ above if not cleaned up) # TODO: fix example # cd packages-ts/starknet-gauntlet-example/ && \ # yarn test -test-integration-gauntlet: build-ts env-devnet-hardhat-down +test-integration-gauntlet: build-ts env-devnet-hardhat cd packages-ts/starknet-gauntlet/ && \ yarn test cd packages-ts/starknet-gauntlet-argent/ && \ diff --git a/packages-ts/starknet-gauntlet/test/utils/network.ts b/packages-ts/starknet-gauntlet/test/utils/network.ts index ef4fb3c28..c21166528 100644 --- a/packages-ts/starknet-gauntlet/test/utils/network.ts +++ b/packages-ts/starknet-gauntlet/test/utils/network.ts @@ -87,10 +87,10 @@ class VenvDevnet extends IntegratedDevnet { export const startNetwork = async (opts?: {}): Promise => { const devnet = new VenvDevnet('5050', opts) - await devnet.start() + // await devnet.start() // Starting to poll devnet too soon can result in ENOENT - await new Promise((f) => setTimeout(f, 2000)) + // await new Promise((f) => setTimeout(f, 2000)) return devnet }