]> Cypherpunks repositories - gostls13.git/commit
net: synchronize instead of sleeping in TestDialParallelSpuriousConnection
authorBryan C. Mills <bcmills@google.com>
Wed, 5 Jan 2022 16:13:27 +0000 (11:13 -0500)
committerBryan Mills <bcmills@google.com>
Thu, 6 Jan 2022 15:00:16 +0000 (15:00 +0000)
commitda7891f6f36c48f2931ed916ed305330c06f9bd7
tree0eed6d1e2c78a1344e99e30053616618f5bcc604
parentf300fc2d2c620feac4e7f9b6cf0125b92943d3c4
net: synchronize instead of sleeping in TestDialParallelSpuriousConnection

The arbitrary sleep in this test is empirically not always long enough
on slower builders. However, we know the exact number of connections
that should be dialed: we can wait on that number in the dial hook
instead.

Fixes #34495

Change-Id: I538244ceb75a80271a724304b993309482bd5b41
Reviewed-on: https://go-review.googlesource.com/c/go/+/375694
Trust: Bryan Mills <bcmills@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/net/dial_test.go