Skip to content

Commit

Permalink
remove useless lines in tests/run.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
july2993 committed Feb 21, 2020
1 parent 0ab7edb commit dfe4e41
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions tests/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand All @@ -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 \
Expand Down Expand Up @@ -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
}


Expand Down

0 comments on commit dfe4e41

Please sign in to comment.