Commit f80f97a3 authored by Quan Yong Zhai's avatar Quan Yong Zhai Committed by Russ Cox

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
parent 8e8edff7
......@@ -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)
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment