Skip to content

Commit

Permalink
Hit the same hub API endpoint for waiting as we do for checking
Browse files Browse the repository at this point in the history
It's possible that the proxy is up at the time the check
passes, but the hub isn't. This would explain the race.
  • Loading branch information
yuvipanda committed Dec 22, 2017
1 parent ed5c52d commit 96c94c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ kubectl --namespace=$TEST_NAMESPACE rollout status --watch deployment/hub
kubectl --namespace=$TEST_NAMESPACE rollout status --watch deployment/proxy

echo "waiting for servers to become responsive"
until curl -s $TEST_URL > /dev/null; do
until curl -s $TEST_URL/hub/api; do
sleep 5
done

Expand Down

0 comments on commit 96c94c1

Please sign in to comment.