2023-01-27 12:48:19 -08:00
|
|
|
#!/bin/sh
|
|
|
|
set -e
|
2023-06-16 05:59:36 -07:00
|
|
|
num=${NUM_GUARDIANS:-1} # default value for NUM_GUARDIANS = 1
|
|
|
|
for ((i=0; i<num; i++)); do
|
|
|
|
while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' guardian-$i.guardian:6060/readyz)" != "200" ]]; do sleep 5; done
|
|
|
|
done
|
2023-01-27 12:48:19 -08:00
|
|
|
CI=true npm run test-accountant
|