crypto/tls, fmt: print fixes

R=golang-dev, bradfitz, minux.ma, rsc, bradfitz
CC=golang-dev
https://golang.org/cl/5787069
This commit is contained in:
Robert Hencke 2012-03-12 12:04:45 +09:00 committed by Mikio Hara
parent 000149abb2
commit 46f6bfea8f

View File

@ -50,7 +50,7 @@ func TestCertHostnameVerifyWindows(t *testing.T) {
conn, err := Dial("tcp", addr+":443", cfg) conn, err := Dial("tcp", addr+":443", cfg)
if err == nil { if err == nil {
conn.Close() conn.Close()
t.Errorf("should fail to verify for example.com: %v", addr, err) t.Errorf("should fail to verify for example.com: %v", addr)
continue continue
} }
_, ok := err.(x509.HostnameError) _, ok := err.(x509.HostnameError)