Merge pull request #114940 from Rajalakshmi-Girish/fix-apiserver-ut-timeout-fail

Fixes the issue #114145
This commit is contained in:
Kubernetes Prow Robot 2023-01-10 10:39:59 -08:00 committed by GitHub
commit aab3fb3a1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -857,7 +857,7 @@ func waitForAPIServerStarted(t *testing.T, doer doer) {
client := newClient(true)
i := 1
err := wait.PollImmediate(100*time.Millisecond, 5*time.Second, func() (done bool, err error) {
result := doer.Do(client, func(httptrace.GotConnInfo) {}, fmt.Sprintf("/echo?message=attempt-%d", i), 100*time.Millisecond)
result := doer.Do(client, func(httptrace.GotConnInfo) {}, fmt.Sprintf("/echo?message=attempt-%d", i), time.Second)
i++
if result.err != nil {