Skip to content

Commit

Permalink
revert debug timeout; fix state value
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-zuyev committed Jun 23, 2021
1 parent 8222cf9 commit 20e0783
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/minikube/bootstrapper/bsutil/kverify/api_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ func APIServerVersionMatch(client *kubernetes.Clientset, expected string) error
func WaitForAPIServerStatus(cr command.Runner, to time.Duration, hostname string, port int) (state.State, error) {
var st state.State
err := wait.PollImmediate(200*time.Millisecond, to, func() (bool, error) {
st, err := APIServerStatus(cr, hostname, port)
var err error
st, err = APIServerStatus(cr, hostname, port)
if st == state.Stopped {
return false, nil
}
Expand Down Expand Up @@ -222,8 +223,7 @@ func apiServerHealthz(hostname string, port int) (state.State, error) {
return nil
}

// revert this !!
err = retry.Local(check, 15*time.Second)
err = retry.Local(check, 5*time.Second)

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

0 comments on commit 20e0783

Please sign in to comment.