From: Andy Pan Date: Thu, 21 Mar 2024 13:08:24 +0000 (+0000) Subject: net/http: eliminate the needless idle timeout for TestServerNoReadTimeout X-Git-Tag: go1.23rc1~785 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c4792e60f332577678c643b430e66934fe64a81e;p=gostls13.git net/http: eliminate the needless idle timeout for TestServerNoReadTimeout Change-Id: I1339749bfeac99848beca780cebb9c87564da656 Reviewed-on: https://go-review.googlesource.com/c/go/+/573335 LUCI-TryBot-Result: Go LUCI Reviewed-by: Damien Neil Reviewed-by: David Chase Reviewed-by: Emmanuel Odeke --- diff --git a/src/net/http/serve_test.go b/src/net/http/serve_test.go index 94b8bdcc2e..c03157e814 100644 --- a/src/net/http/serve_test.go +++ b/src/net/http/serve_test.go @@ -814,7 +814,6 @@ func testServerNoReadTimeout(t *testing.T, mode testMode) { res.Write([]byte(resBody)) }), func(ts *httptest.Server) { ts.Config.ReadTimeout = timeout - ts.Config.IdleTimeout = 10 * time.Millisecond t.Logf("Server.Config.ReadTimeout = %d", timeout) })