]> Cypherpunks repositories - gostls13.git/commitdiff
net/http: eliminate the needless idle timeout for TestServerNoReadTimeout
authorAndy Pan <i@andypan.me>
Thu, 21 Mar 2024 13:08:24 +0000 (13:08 +0000)
committerEmmanuel Odeke <emmanuel@orijtech.com>
Mon, 25 Mar 2024 09:38:08 +0000 (09:38 +0000)
Change-Id: I1339749bfeac99848beca780cebb9c87564da656
Reviewed-on: https://go-review.googlesource.com/c/go/+/573335
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com>
src/net/http/serve_test.go

index 94b8bdcc2e2378d2d316e68519199348f26159c3..c03157e814ec11a24ddb38d9ea22b26335dd96fb 100644 (file)
@@ -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)
                })