mirror of
https://github.com/golang/go
synced 2024-11-17 13:35:08 -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:
parent
b906df653b
commit
c69233be84
@ -3460,7 +3460,7 @@ func TestTransportRejectsAlphaPort(t *testing.T) {
|
|||||||
res, err := Get("http://dummy.tld:123foo/bar")
|
res, err := Get("http://dummy.tld:123foo/bar")
|
||||||
if err == nil {
|
if err == nil {
|
||||||
res.Body.Close()
|
res.Body.Close()
|
||||||
t.Fatal("unexpected sucess")
|
t.Fatal("unexpected success")
|
||||||
}
|
}
|
||||||
ue, ok := err.(*url.Error)
|
ue, ok := err.(*url.Error)
|
||||||
if !ok {
|
if !ok {
|
||||||
|
Loading…
Reference in New Issue
Block a user