Skip to content

Commit

Permalink
Use the external devnet over startNetwork()
Browse files Browse the repository at this point in the history
  • Loading branch information
archseer committed Jan 16, 2024
1 parent 6c1b856 commit aa53e68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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/ && \
Expand Down
4 changes: 2 additions & 2 deletions packages-ts/starknet-gauntlet/test/utils/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ class VenvDevnet extends IntegratedDevnet {
export const startNetwork = async (opts?: {}): Promise<IntegratedDevnet> => {
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
}

0 comments on commit aa53e68

Please sign in to comment.