scripts/tests/rollingupgrade: use wait-for instead of sleep

Change-Id: Ie879e061d3b312705726375953767d420e922073
This commit is contained in:
Egon Elbre 2020-11-17 12:18:40 +02:00 committed by Stefan Benten
parent a17cd9aa3e
commit 8da5e6a554

View File

@ -274,8 +274,8 @@ old_api_cmd="${test_dir}/local-network/satellite/0/old_satellite run api --confi
nohup $old_api_cmd &
# Storing the background process' PID.
old_api_pid=$!
# Give the old api endpoint 5 seconds to start to avoid a race condition with the database migration
sleep 5
# Wait until old satellite api is responding to requests to ensure it happens before migration.
storj-sim tool wait-for -retry 50 -interval 100ms "127.0.0.1:30000"
# Downloading every file uploaded in stage 1 from the network using the latest commit from master branch for each uplink version
for ul_version in ${stage2_uplink_versions}; do