Skip to content

Commit 20e0783

Browse files
committed
revert debug timeout; fix state value
1 parent 8222cf9 commit 20e0783

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/minikube/bootstrapper/bsutil/kverify/api_server.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ func APIServerVersionMatch(client *kubernetes.Clientset, expected string) error
149149
func WaitForAPIServerStatus(cr command.Runner, to time.Duration, hostname string, port int) (state.State, error) {
150150
var st state.State
151151
err := wait.PollImmediate(200*time.Millisecond, to, func() (bool, error) {
152-
st, err := APIServerStatus(cr, hostname, port)
152+
var err error
153+
st, err = APIServerStatus(cr, hostname, port)
153154
if st == state.Stopped {
154155
return false, nil
155156
}
@@ -222,8 +223,7 @@ func apiServerHealthz(hostname string, port int) (state.State, error) {
222223
return nil
223224
}
224225

225-
// revert this !!
226-
err = retry.Local(check, 15*time.Second)
226+
err = retry.Local(check, 5*time.Second)
227227

228228
// Don't propagate 'Stopped' upwards as an error message, as clients may interpret the err
229229
// as an inability to get status. We need it for retry.Local, however.

0 commit comments

Comments
 (0)