]> Cypherpunks repositories - gostls13.git/commit
net/http: allow multiple dials in TestTransportMaxConnsPerHost
authorMichael Fraenkel <michael.fraenkel@gmail.com>
Thu, 15 Apr 2021 00:35:49 +0000 (18:35 -0600)
committerDamien Neil <dneil@google.com>
Thu, 15 Apr 2021 16:09:16 +0000 (16:09 +0000)
commit5631c4b3bfd71aae7cbdd7f35f63de7f89639d1e
tree6a754f7c9a181cd7a1a17b00ede580ef02141855
parent1d20a362d0ca4898d77865e314ef6f73582daef0
net/http: allow multiple dials in TestTransportMaxConnsPerHost

If there is more than the expected single dial, the channel will block.
Allow at least one connection per client, and do the expected cleanup.

Updates #45570

Change-Id: Iaecd45298a7d7c591b7d7b1be13cea6e4a1e2e85
Reviewed-on: https://go-review.googlesource.com/c/go/+/310213
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
Trust: Damien Neil <dneil@google.com>
Trust: Emmanuel Odeke <emmanuel@orijtech.com>
src/net/http/transport_test.go