TestPreShutdownHooks: change timeout to 1s

Kubernetes-commit: 99c447ff0e93157bf0760498c4090483162e7cf5
This commit is contained in:
Paco Xu 2022-03-30 10:18:56 +08:00 committed by Kubernetes Publisher
parent 4079840d72
commit e389c500bd
1 changed files with 1 additions and 1 deletions

View File

@ -443,7 +443,7 @@ func TestPreShutdownHooks(t *testing.T) {
var r result
client := newClient(true)
for i := 0; i < 5; i++ {
r = doer.Do(client, func(httptrace.GotConnInfo) {}, fmt.Sprintf("/echo?message=attempt-%d", i), 100*time.Millisecond)
r = doer.Do(client, func(httptrace.GotConnInfo) {}, fmt.Sprintf("/echo?message=attempt-%d", i), 1*time.Second)
if r.err != nil {
break
}