From: Meng Zhuo Date: Thu, 27 Jul 2023 08:20:58 +0000 (+0800) Subject: net: ignore blackhole route in TestDialCancel X-Git-Tag: go1.22rc1~1493 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c17e0cd2da0d69aba28d23aab12186eedc579dc1;p=gostls13.git 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 Auto-Submit: Ian Lance Taylor Reviewed-by: Ian Lance Taylor TryBot-Result: Gopher Robot Run-TryBot: Ian Lance Taylor Reviewed-by: David Chase Run-TryBot: M Zhuo --- 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 {