1
0
mirror of https://github.com/golang/go synced 2024-11-17 10:44:43 -07:00

net/http: fix a typo in test

Change-Id: I897237667ffe9e9b2a5f92251a6f665d29479fd2
Reviewed-on: https://go-review.googlesource.com/33255
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Mikio Hara 2016-11-16 13:51:45 +09:00
parent b906df653b
commit c69233be84

View File

@ -3460,7 +3460,7 @@ func TestTransportRejectsAlphaPort(t *testing.T) {
res, err := Get("http://dummy.tld:123foo/bar")
if err == nil {
res.Body.Close()
t.Fatal("unexpected sucess")
t.Fatal("unexpected success")
}
ue, ok := err.(*url.Error)
if !ok {