Skip to content

Commit

Permalink
net: ignore blackhole route in TestDialCancel
Browse files Browse the repository at this point in the history
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 golang#61590

Change-Id: I9ddb86c5be0e5e261afa96cbaf55d9fdf30b2795
Reviewed-on: https://go-review.googlesource.com/c/go/+/513595
Run-TryBot: Ian Lance Taylor <[email protected]>
Auto-Submit: Ian Lance Taylor <[email protected]>
Reviewed-by: Ian Lance Taylor <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
Run-TryBot: Ian Lance Taylor <[email protected]>
Reviewed-by: David Chase <[email protected]>
Run-TryBot: M Zhuo <[email protected]>
  • Loading branch information
mengzhuo authored and gopherbot committed Jul 31, 2023
1 parent 20ea988 commit c17e0cd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/net/dial_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c17e0cd

Please sign in to comment.