aboutsummaryrefslogtreecommitdiff
path: root/src/net/http/clientserver_test.go
diff options
context:
space:
mode:
authorDamien Neil <dneil@google.com>2024-09-25 11:48:17 -0700
committerGopher Robot <gobot@golang.org>2025-09-26 15:06:09 -0700
commit16be34df02ba073456e5f31203549165585f3e6c (patch)
tree0c1f7560b2c91b3b1bb7b60fea9fa08dbd265fee /src/net/http/clientserver_test.go
parent3e4540b49d3066ee3fd57f3456506f6d09d0129b (diff)
downloadgo-16be34df02ba073456e5f31203549165585f3e6c.tar.xz
net/http: add more tests of transport connection pool
Add a variety of addtional tests exercising client connection pooling, in particular HTTP/2 connection behavior. Change-Id: I7609d36db5865f1b95c903cfadb0c3233e046c09 Reviewed-on: https://go-review.googlesource.com/c/go/+/615896 Reviewed-by: Nicholas Husin <husin@google.com> Reviewed-by: Nicholas Husin <nsh@golang.org> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Damien Neil <dneil@google.com>
Diffstat (limited to 'src/net/http/clientserver_test.go')
-rw-r--r--src/net/http/clientserver_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/net/http/clientserver_test.go b/src/net/http/clientserver_test.go
index c3cf3984ef..8665bae38a 100644
--- a/src/net/http/clientserver_test.go
+++ b/src/net/http/clientserver_test.go
@@ -207,6 +207,8 @@ func newClientServerTest(t testing.TB, mode testMode, h Handler, opts ...any) *c
transportFuncs = append(transportFuncs, opt)
case func(*httptest.Server):
opt(cst.ts)
+ case func(*Server):
+ opt(cst.ts.Config)
default:
t.Fatalf("unhandled option type %T", opt)
}