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 <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>
This commit is contained in:
Andy Pan 2024-03-21 13:08:24 +00:00 committed by Emmanuel Odeke
parent aaecd755d7
commit c4792e60f3
1 changed files with 0 additions and 1 deletions

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