Make curl fail with non-zero exit code if request fails
Currently this only waits for the endpoints to respond at all,
rather than for them to respond successfully.
@@ -37,10 +37,10 @@ echo "waiting for pods to become ready"
kubectl --namespace=$BINDER_TEST_NAMESPACE get deployment -o name | xargs -L1 kubectl --namespace=$BINDER_TEST_NAMESPACE rollout status --watch
echo "waiting for servers to become responsive"
-until curl $BINDER_TEST_URL > /dev/null; do
+until curl --fail $BINDER_TEST_URL > /dev/null; do
sleep 1
done
-until curl $HUB_URL> /dev/null; do
+until curl --fail $HUB_URL> /dev/null; do
sleep 1
done
