Browse Source

storage-node: integration test break from loop on success

Mokhtar Naamani 4 years ago
parent
commit
6bf976cce2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      .github/workflows/run-network-tests.yml

+ 1 - 1
.github/workflows/run-network-tests.yml

@@ -211,6 +211,6 @@ jobs:
             [ "$i" == "4" ] && exit -1
             echo "Waiting for ipfs name registration"
             sleep ${WAIT_TIME}
-            yarn storage-cli upload ./pioneer/packages/apps/public/images/default-thumbnail.png 1 0 || 
+            (yarn storage-cli upload ./pioneer/packages/apps/public/images/default-thumbnail.png 1 0 && break) || \
               (echo "Upload test failed, will retry" && sleep ${WAIT_TIME} && continue)
           done