]> Cypherpunks repositories - gostls13.git/commitdiff
net: allow TestDialListenerAddr without an external network
authorBryan C. Mills <bcmills@google.com>
Tue, 11 Apr 2023 16:26:53 +0000 (16:26 +0000)
committerGopher Robot <gobot@golang.org>
Tue, 11 Apr 2023 17:09:39 +0000 (17:09 +0000)
As of CL 482163, this test now works when only a loopback network is
available.

Updates #59497.

Change-Id: I32be4b74bbc663eb109763ea19d79f22c63f50ae
Reviewed-on: https://go-review.googlesource.com/c/go/+/483696
Run-TryBot: Bryan Mills <bcmills@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Bypass: Bryan Mills <bcmills@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>

src/net/dial_test.go

index d25a642a0ad7e7a1a3d973745c2043b879fd947a..57f685e5471a3fd91f8e4643024951845cd7a9e3 100644 (file)
@@ -883,8 +883,6 @@ func TestCancelAfterDial(t *testing.T) {
 // if the machine has halfway configured IPv6 such that it can bind on
 // "::" not connect back to that same address.
 func TestDialListenerAddr(t *testing.T) {
-       mustHaveExternalNetwork(t)
-
        if !testableNetwork("tcp4") {
                t.Skipf("skipping: can't listen on tcp4")
        }