mirror of
https://github.com/golang/net.git
synced 2026-03-31 18:37:08 +09:00
This test makes assumptions about the internal structure of *clientConnPool, as well as assuming that a goroutine will schedule and run within one second. The former assumption isn't necessary, and the latter causes flakiness. Refactor the test to count dial and close calls, which is all it needs to test the desired behavior (one pending dial per destination). Fixes golang/go#43176. Change-Id: I125b110f196e29f303960c6851089118f8fb5d38 Reviewed-on: https://go-review.googlesource.com/c/net/+/370175 Trust: Damien Neil <dneil@google.com> Run-TryBot: Damien Neil <dneil@google.com> Reviewed-by: Bryan Mills <bcmills@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>