mirror of
https://github.com/golang/go
synced 2024-11-22 02:44:39 -07:00
net: fix dialgoogle_test.go
~$ nslookup www.google.com Server: 8.8.8.8 cannonical name = www-g-com-chn.l.google.com. R=adg, rsc CC=golang-dev https://golang.org/cl/4445045
This commit is contained in:
parent
8e8edff785
commit
f80f97a351
@ -62,8 +62,8 @@ func TestLookupCNAME(t *testing.T) {
|
||||
return
|
||||
}
|
||||
cname, err := LookupCNAME("www.google.com")
|
||||
if cname != "www.l.google.com." || err != nil {
|
||||
t.Errorf(`LookupCNAME("www.google.com.") = %q, %v, want "www.l.google.com.", nil`, cname, err)
|
||||
if !strings.HasSuffix(cname, ".l.google.com.") || err != nil {
|
||||
t.Errorf(`LookupCNAME("www.google.com.") = %q, %v, want "*.l.google.com.", nil`, cname, err)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user