Merge pull request #42580 from thaJeztah/reduce_TestClientWithRequestTimeout_flakiness
Reduce TestClientWithRequestTimeout flakiness
This commit is contained in:
commit
fb21a1e474
1 changed files with 1 additions and 1 deletions
|
@ -242,7 +242,7 @@ func TestClientWithRequestTimeout(t *testing.T) {
|
|||
|
||||
timeout := 1 * time.Millisecond
|
||||
testHandler := func(w http.ResponseWriter, r *http.Request) {
|
||||
time.Sleep(timeout + 1*time.Millisecond)
|
||||
time.Sleep(timeout + 10*time.Millisecond)
|
||||
w.WriteHeader(http.StatusOK)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue