mirror of https://github.com/knative/func.git
fix: increase timeout when testing int cluster availability (#1032)
This commit is contained in:
parent
17dc507c25
commit
fba0dc6af6
12
hack/test.sh
12
hack/test.sh
|
@ -41,13 +41,17 @@ EOF
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
echo "Retrying..."
|
echo "Retrying..."
|
||||||
sleep 5
|
sleep 10
|
||||||
done
|
done
|
||||||
|
|
||||||
sleep 60
|
# Sleep to avoid a racing condition where `kubectl wait` below will fail
|
||||||
|
# immediately that the "echo" route is not found and can thus not be waited
|
||||||
|
# upon to complete.
|
||||||
|
sleep 30
|
||||||
|
|
||||||
# wait for the route to become ready
|
# Wait for the test to become available
|
||||||
kubectl wait --for=condition=Ready route echo -n func
|
echo "${em} Waiting for echo route${me}"
|
||||||
|
kubectl wait --for=condition=Ready route echo -n func --timeout=120s
|
||||||
|
|
||||||
echo "${em} Invoking echo server${me}"
|
echo "${em} Invoking echo server${me}"
|
||||||
curl http://echo.func.127.0.0.1.sslip.io/
|
curl http://echo.func.127.0.0.1.sslip.io/
|
||||||
|
|
Loading…
Reference in New Issue