]> Cypherpunks repositories - gostls13.git/commit
net: eliminate arbitrary timeout in TestVariousDeadlines
authorBryan C. Mills <bcmills@google.com>
Tue, 14 Dec 2021 22:07:24 +0000 (17:07 -0500)
committerBryan Mills <bcmills@google.com>
Wed, 15 Dec 2021 13:31:58 +0000 (13:31 +0000)
commitb5c0dbaafc548bd432c14935ae242ce1433180e8
tree0c7b4317136fbd002d0f10b44b2baf385fd4b8dd
parent9d0ca262bbfa5561910f75e7b7d937b615d69393
net: eliminate arbitrary timeout in TestVariousDeadlines

When we set a timeout, we don't actually have a guarantee one how long
the OS will take to notice it. Moreover, if the test deadlocks
completely (for example, due to a deadline never taking effect), it
would be more useful to get a full goroutine dump instead of the current
"client stuck in Dial+Copy" failure message.

For #37883
For #41863

Change-Id: I9f712ef1c620f97a5ab69baac45deb71134b99bc
Reviewed-on: https://go-review.googlesource.com/c/go/+/371994
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/timeout_test.go