aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMeng Zhuo <mzh@golangcn.org>2023-07-27 16:20:58 +0800
committerGopher Robot <gobot@golang.org>2023-07-31 15:43:06 +0000
commitc17e0cd2da0d69aba28d23aab12186eedc579dc1 (patch)
treee88741eb4dcc12060510535b95c32d00b35229cd /src
parent20ea98842159d7cde30062711527495ac00bcacd (diff)
downloadgo-c17e0cd2da0d69aba28d23aab12186eedc579dc1.tar.xz
net: ignore blackhole route in TestDialCancel
CL 496037 had ignored 3 types of null route, however blackhole route is not included i.e. on Linux we can add a blackhole route by `ip route add blackhole 198.18.0.254/32` Fixes #61590 Change-Id: I9ddb86c5be0e5e261afa96cbaf55d9fdf30b2795 Reviewed-on: https://go-review.googlesource.com/c/go/+/513595 Run-TryBot: Ian Lance Taylor <iant@golang.org> Auto-Submit: Ian Lance Taylor <iant@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Ian Lance Taylor <iant@google.com> Reviewed-by: David Chase <drchase@google.com> Run-TryBot: M Zhuo <mzh@golangcn.org>
Diffstat (limited to 'src')
-rw-r--r--src/net/dial_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/net/dial_test.go b/src/net/dial_test.go
index 784fb1d899..c36274d4d7 100644
--- a/src/net/dial_test.go
+++ b/src/net/dial_test.go
@@ -784,6 +784,7 @@ func TestDialCancel(t *testing.T) {
"connection refused",
"unreachable",
"no route to host",
+ "invalid argument",
}
e := err.Error()
for _, ignore := range ignorable {