TestPreShutdownHooks: change timeout to 1s

This commit is contained in:
Paco Xu 2022-03-30 10:18:56 +08:00
parent 699aeb735f
commit 99c447ff0e

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
}