mirror of https://github.com/golang/go.git
net: root the nodata test domain to avoid search domains
I came across similar issue in CL 455275.
Without rooting this, the search domains might affect
the query, so the test might not prove the right thing.
The search domain will cause a change from no data
to NXDOMAIN error.
Change-Id: I59f4de2635f03c69adf29b74e25e4ebd71e7413b
GitHub-Last-Rev: 3a086c74f1
GitHub-Pull-Request: golang/go#60197
Reviewed-on: https://go-review.googlesource.com/c/go/+/494896
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
This commit is contained in:
parent
1079e574d4
commit
bc2095280e
|
|
@ -1425,7 +1425,7 @@ func testLookupNoData(t *testing.T, prefix string) {
|
|||
for {
|
||||
// Domain that doesn't have any A/AAAA RRs, but has different one (in this case a TXT),
|
||||
// so that it returns an empty response without any error codes (NXDOMAIN).
|
||||
_, err := LookupHost("golang.rsc.io")
|
||||
_, err := LookupHost("golang.rsc.io.")
|
||||
if err == nil {
|
||||
t.Errorf("%v: unexpected success", prefix)
|
||||
return
|
||||
|
|
|
|||
Loading…
Reference in New Issue