Merge pull request #42580 from thaJeztah/reduce_TestClientWithRequestTimeout_flakiness

Reduce TestClientWithRequestTimeout flakiness
This commit is contained in:
Justin Cormack 2021-07-19 15:11:43 +01:00 committed by GitHub
commit fb21a1e474
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)
}