diff options
author | Heschi Kreinick <heschi@google.com> | 2022-04-26 12:34:35 -0400 |
---|---|---|
committer | Dmitri Shuralyov <dmitshur@golang.org> | 2022-05-09 21:42:12 +0000 |
commit | b2b4b9e015998bd1a0b9ab3d5a5d5138951a3bf5 (patch) | |
tree | 131359f5f98d44e7a32c7cea62bda06baf4bfcff | |
parent | 45568433edcea7e7691de93e4de32cbf87d0eeca (diff) | |
download | go-b2b4b9e015998bd1a0b9ab3d5a5d5138951a3bf5.tar.gz go-b2b4b9e015998bd1a0b9ab3d5a5d5138951a3bf5.zip |
[release-branch.go1.18] net: skip TestDialCancel on darwin-arm64
We're turning up Macs in a network environment that clashes with this
test. I don't think it's critical to get it working, so skip it.
For #49149.
Fixes #52706.
Change-Id: I925e3ecc5356c4cefd208bdcff3d98021215d0b4
Reviewed-on: https://go-review.googlesource.com/c/go/+/402181
Reviewed-by: Alex Rakoczy <alex@golang.org>
Run-TryBot: Heschi Kreinick <heschi@google.com>
Auto-Submit: Heschi Kreinick <heschi@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
(cherry picked from commit 06b0a655a1f46abab2e3c173259ad184b557dd89)
Reviewed-on: https://go-review.googlesource.com/c/go/+/405294
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
-rw-r--r-- | src/net/dial_test.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/net/dial_test.go b/src/net/dial_test.go index b9aead0371..3cce444e5c 100644 --- a/src/net/dial_test.go +++ b/src/net/dial_test.go @@ -758,6 +758,12 @@ func TestDialerKeepAlive(t *testing.T) { func TestDialCancel(t *testing.T) { mustHaveExternalNetwork(t) + if strings.HasPrefix(testenv.Builder(), "darwin-arm64") { + // The darwin-arm64 machines run in an environment that's not + // compatible with this test. + t.Skipf("builder %q gives no route to host for 198.18.0.0", testenv.Builder()) + } + blackholeIPPort := JoinHostPort(slowDst4, "1234") if !supportsIPv4() { blackholeIPPort = JoinHostPort(slowDst6, "1234") |