]> Cypherpunks repositories - gostls13.git/commitdiff
net: ignore blackhole route in TestDialCancel
authorMeng Zhuo <mzh@golangcn.org>
Thu, 27 Jul 2023 08:20:58 +0000 (16:20 +0800)
committerGopher Robot <gobot@golang.org>
Mon, 31 Jul 2023 15:43:06 +0000 (15:43 +0000)
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>

src/net/dial_test.go

index 784fb1d89955b48e8da535e74ba8371fac18b642..c36274d4d772a999dc70ad8aeac34181b2e86007 100644 (file)
@@ -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 {