From: Bryan C. Mills Date: Tue, 11 Apr 2023 16:26:53 +0000 (+0000) Subject: net: allow TestDialListenerAddr without an external network X-Git-Tag: go1.21rc1~954 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=0d82f584c223fb045496f3e063bf93416a24e0b0;p=gostls13.git net: allow TestDialListenerAddr without an external network 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 Reviewed-by: Ian Lance Taylor TryBot-Bypass: Bryan Mills Auto-Submit: Bryan Mills --- diff --git a/src/net/dial_test.go b/src/net/dial_test.go index d25a642a0a..57f685e547 100644 --- a/src/net/dial_test.go +++ b/src/net/dial_test.go @@ -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") }