]> Cypherpunks repositories - gostls13.git/commit
net: remove timeout in TestDialTimeoutMaxDuration
authorTamir Duberstein <tamird@google.com>
Tue, 12 Oct 2021 19:03:25 +0000 (15:03 -0400)
committerDamien Neil <dneil@google.com>
Wed, 13 Oct 2021 17:02:43 +0000 (17:02 +0000)
commitb5904f3de0937aac72acd40d6c26494ebb9d7909
tree438e3cf17aea06427625655a21cc3531aaea3a45
parentaded1679ef6a33ef6fe6c0b466ecf59186706d23
net: remove timeout in TestDialTimeoutMaxDuration

This test seems only to be testing that Dial does not time out
immediately as a result of integer overflow; the precise time taken to
connect is immaterial. Replace naked loop with sub-tests.

Fixes #43069.

Change-Id: Ib5e38a1d8cd191b74c2bc7c26bef57b180e16f68
Reviewed-on: https://go-review.googlesource.com/c/go/+/355390
Trust: Michael Pratt <mpratt@google.com>
Run-TryBot: Michael Pratt <mpratt@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
src/net/timeout_test.go