Browse Source

integration-tests: fix use of sleep command cross-platform

Mokhtar Naamani 4 years ago
parent
commit
453ea6672e
2 changed files with 2 additions and 9 deletions
  1. 1 1
      tests/network-tests/run-storage-node-tests.sh
  2. 1 8
      tests/network-tests/run-tests.sh

+ 1 - 1
tests/network-tests/run-storage-node-tests.sh

@@ -38,7 +38,7 @@ yarn workspace @joystream/cd-schemas initialize:dev
 
 # Fixes Error: No active storage providers available
 echo "Waiting for ipfs name registration"
-sleep 3m
+sleep 120
 
 echo "Creating channel..."
 yarn joystream-cli media:createChannel \

+ 1 - 8
tests/network-tests/run-tests.sh

@@ -73,13 +73,6 @@ function cleanup() {
 
 trap cleanup EXIT
 
-# Initialize content-directory
-# sleep 15
-# yarn workspace @joystream/cd-schemas initialize:dev
-# NOTE: Skipping this step and let the scenarios do this setup instead
-# or align the scenario expectations of the initial state to match
-# with what we do here.
-
 if [ "$TARGET_RUNTIME" == "$RUNTIME" ]; then
   echo "Not Performing a runtime upgrade."
 else
@@ -103,6 +96,6 @@ fi
 yarn workspace api-scripts tsnode-strict src/status.ts | grep Runtime
 
 echo "Waiting for chain to startup..."
-sleep 5s
+sleep 10
 
 ./run-test-scenario.sh $1