2022-02-08 00:55:10 -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; echo "waiting for guardian $i"; done
|
|
|
|
done
|
|
|
|
|
2022-07-14 13:23:27 -07:00
|
|
|
while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' spy:6060/metrics)" != "200" ]]; do sleep 5; done
|
2023-05-18 15:56:18 -07:00
|
|
|
while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' ibc-relayer:7597/debug/pprof/)" != "200" ]]; do sleep 5; done
|
2023-06-14 12:08:28 -07:00
|
|
|
while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' relayer-engine:3000/metrics)" != "200" ]]; do sleep 5; done
|
2022-02-08 00:55:10 -08:00
|
|
|
CI=true npm --prefix ../sdk/js run test-ci
|