]> Cypherpunks repositories - gostls13.git/commit
net: remove erroneous Dial check in TestListenerClose
authorBryan C. Mills <bcmills@google.com>
Thu, 9 Dec 2021 22:00:51 +0000 (17:00 -0500)
committerBryan Mills <bcmills@google.com>
Mon, 13 Dec 2021 15:47:14 +0000 (15:47 +0000)
commit36db10f3cb916a1b97af3bfd4be7e3a2932185f8
tree9d5fc7f6c1481279e360112ac57ace7d1f80b37f
parent9bfe09d78bd1b3ab97bc6e1c31395f0822875fba
net: remove erroneous Dial check in TestListenerClose

TestListenerClose had been asserting that a Dial to the newly-closed
address always fails, on the assumption that the listener's address
and port would not be reused by some other listener that could then
accept the connection.

As far as I can tell, that assumption is not valid: the Dial after
Close may well connect to a Listener opened for some other test, or
even one opened by a completely different process running concurrently
on the same machine.

Fixes #38700

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