]> Cypherpunks repositories - gostls13.git/commit
net: use t.Deadline instead of an arbitrary read deadline in TestDialParallelSpurious...
authorBryan C. Mills <bcmills@google.com>
Wed, 11 Mar 2020 15:03:35 +0000 (11:03 -0400)
committerBryan C. Mills <bcmills@google.com>
Wed, 11 Mar 2020 16:49:13 +0000 (16:49 +0000)
commitcf82feabb634ece598044ffe98ff445daec35c0a
tree8c293194e7efd2160796c3db18369f635b84134a
parent211ee9f07cb454058fab5914117c19f33a7f64de
net: use t.Deadline instead of an arbitrary read deadline in TestDialParallelSpuriousConnection

Also increase the default deadline to 5s, since it empirically
doesn't need to be short and 1s seems to be too slow on some platforms.

Fixes #37795

Change-Id: Ie6bf3916b107401235a1fa8cb0f22c4a98eb2dae
Reviewed-on: https://go-review.googlesource.com/c/go/+/222959
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
src/net/dial_test.go