diff --git a/tests/run.sh b/tests/run.sh index 194204eb6..c86719dbd 100755 --- a/tests/run.sh +++ b/tests/run.sh @@ -117,6 +117,7 @@ EOF --data-dir "$OUT_DIR/pd" & # wait until PD is online... + # use wget, on CI curl's version is too old: curl: (58) unable to load client key: -8178 (SEC_ERROR_BAD_KEY))))) while ! wget -q -O - \ --ca-certificate="$OUT_DIR/cert/ca.pem" \ --certificate="$OUT_DIR/cert/client.pem" \ @@ -125,21 +126,6 @@ EOF sleep 1 done - - # on CI curl's version is too old: curl: (58) unable to load client key: -8178 (SEC_ERROR_BAD_KEY))) - # num=0 - # while ! curl --cacert "$OUT_DIR/cert/ca.pem" --cert "$OUT_DIR/cert/client.pem" --key "$OUT_DIR/cert/client.key" -o /dev/null -sf https://127.0.0.1:2379/pd/api/v1/version; do - # num=$(( $num + 1 )) - # if (( num > 60 )); then - # echo "Fail to check PD is started" - # # try again for why error - # curl --cacert "$OUT_DIR/cert/ca.pem" --cert "$OUT_DIR/cert/client.pem" --key "$OUT_DIR/cert/client.key" https://127.0.0.1:2379/pd/api/v1/version - # exit -1 - # fi - - # sleep 1 - # done - echo "Starting downstream PD..." pd-server \ --client-urls http://127.0.0.1:2381 \ @@ -237,9 +223,6 @@ EOF https://127.0.0.1:8249/status; do sleep 1 done - # while ! curl --cacert "$OUT_DIR/cert/ca.pem" --cert "$OUT_DIR/cert/client.pem" --key "$OUT_DIR/cert/client.key" -o /dev/null -sf https://127.0.0.1:8249/status; do - # sleep 1 - # done }