From b3ff96c46ae45ecfbe3122e29f26c81116bb571f Mon Sep 17 00:00:00 2001 From: Dustin Brickwood Date: Thu, 12 Dec 2024 14:57:15 -0600 Subject: [PATCH] fix: add retry logic to prevent race condition failure --- .github/workflows/test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0d8ca6513..b40057a40 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -169,7 +169,9 @@ jobs: run: | cp ./install-foundry-zksync ./foundryup-zksync/* /tmp/ cd /tmp - ./install-foundry-zksync + for i in {1..3}; do + ./install-foundry-zksync && break || echo "Retrying in 5 seconds..." && sleep 5 + done - name: Verify anvil-zksync installation run: anvil-zksync --version \ No newline at end of file