aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/net/dial_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/net/dial_test.go b/src/net/dial_test.go
index 59a016a0c5..a892bf1e14 100644
--- a/src/net/dial_test.go
+++ b/src/net/dial_test.go
@@ -893,6 +893,9 @@ 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) {
+ if testenv.Builder() == "" {
+ testenv.MustHaveExternalNetwork(t)
+ }
ln, err := Listen("tcp", ":0")
if err != nil {
t.Fatal(err)