mirror of
https://github.com/golang/go
synced 2024-11-02 11:21:19 +00:00
net: use .invalid for an invalid domain name
Fixes #25370 Change-Id: I12da0cc17f433ca12c85fb986d65ac9ecb2c3f20 Reviewed-on: https://go-review.googlesource.com/c/151359 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
4295ed9bef
commit
3a60629a6d
1 changed files with 2 additions and 2 deletions
|
@ -925,8 +925,8 @@ func TestLookupHostCancel(t *testing.T) {
|
|||
|
||||
const (
|
||||
google = "www.google.com"
|
||||
invalidDomain = "nonexistentdomain.golang.org"
|
||||
n = 600 // this needs to be larger than threadLimit size
|
||||
invalidDomain = "invalid.invalid" // RFC 2606 reserves .invalid
|
||||
n = 600 // this needs to be larger than threadLimit size
|
||||
)
|
||||
|
||||
_, err := LookupHost(google)
|
||||
|
|
Loading…
Reference in a new issue