mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
Merge pull request #114940 from Rajalakshmi-Girish/fix-apiserver-ut-timeout-fail
Fixes the issue #114145
This commit is contained in:
commit
aab3fb3a1e
@ -857,7 +857,7 @@ func waitForAPIServerStarted(t *testing.T, doer doer) {
|
|||||||
client := newClient(true)
|
client := newClient(true)
|
||||||
i := 1
|
i := 1
|
||||||
err := wait.PollImmediate(100*time.Millisecond, 5*time.Second, func() (done bool, err error) {
|
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++
|
i++
|
||||||
|
|
||||||
if result.err != nil {
|
if result.err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user