From 13179f22b595895afee06ca66253e549f7302a87 Mon Sep 17 00:00:00 2001 From: storywithoutend Date: Tue, 15 Oct 2024 12:05:27 +0800 Subject: [PATCH] add timeout after deploy script finishes --- packages/ens-test-env/src/manager.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/ens-test-env/src/manager.js b/packages/ens-test-env/src/manager.js index 3564dd8e..52ef8a15 100644 --- a/packages/ens-test-env/src/manager.js +++ b/packages/ens-test-env/src/manager.js @@ -252,6 +252,9 @@ export const main = async (_config, _options, justKill) => { await awaitCommand('deploy', config.deployCommand) + // wait for anvil deploy to finish + await new Promise((resolve) => setTimeout(resolve, 5000)) + // remove block timestamp interval after deploy await rpcFetch('anvil_removeBlockTimestampInterval', []) @@ -336,7 +339,6 @@ export const main = async (_config, _options, justKill) => { 'http-get://localhost:8000/subgraphs/name/graphprotocol/ens', ], }) - await new Promise((resolve) => setTimeout(resolve, 5000)) } }