2023-10-19 08:32:23 -07:00
|
|
|
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
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-11-08 09:22:34 -08:00
|
|
|
while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' query-server:6068/health)" != "200" ]]; do sleep 5; done
|
2023-10-19 08:32:23 -07:00
|
|
|
CI=true npm --prefix ../sdk/js-query run test-ci
|