From 29df52b6ee22b1ef79abf28b355c36a2644e0552 Mon Sep 17 00:00:00 2001 From: Tomasz Slabon Date: Tue, 24 Oct 2023 15:05:16 +0200 Subject: [PATCH] Updated check for hardhat node running --- .github/workflows/system-tests.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/system-tests.yml b/.github/workflows/system-tests.yml index a42f6a0f8..72d0263b4 100644 --- a/.github/workflows/system-tests.yml +++ b/.github/workflows/system-tests.yml @@ -28,8 +28,8 @@ jobs: working-directory: ./solidity run: | npx hardhat node --no-deploy & - HH_NODE_PID=$! - while ! lsof -n -Fn -p $HH_NODE_PID | grep -q '^n.*:8545$'; do sleep 10; done + while [[ -z $(lsof -i :8545 -t) ]]; do echo "Waiting for port 8545 to be open..."; sleep 10; done + sleep 60 - name: Deploy contracts working-directory: ./solidity @@ -84,8 +84,8 @@ jobs: working-directory: ./solidity run: | npx hardhat node --no-deploy & - HH_NODE_PID=$! - while ! lsof -n -Fn -p $HH_NODE_PID | grep -q '^n.*:8545$'; do sleep 10; done + while [[ -z $(lsof -i :8545 -t) ]]; do echo "Waiting for port 8545 to be open..."; sleep 10; done + sleep 60 - name: Deploy contracts working-directory: ./solidity