aboutsummaryrefslogtreecommitdiff
path: root/src/net/http/httputil/reverseproxy_test.go
diff options
context:
space:
mode:
authorDaniel Martí <mvdan@mvdan.cc>2019-08-28 15:50:31 +0200
committerDaniel Martí <mvdan@mvdan.cc>2019-08-28 14:02:41 +0000
commit81fde0c9418a057ea83f9c7c286d866bd20cf692 (patch)
tree074af5c7207a831e8fd054b5bec9367c4f8a236f /src/net/http/httputil/reverseproxy_test.go
parent372b0eed175b88ba2654607b05a36416f08c4cea (diff)
downloadgo-81fde0c9418a057ea83f9c7c286d866bd20cf692.tar.gz
go-81fde0c9418a057ea83f9c7c286d866bd20cf692.zip
net/http: fix a long test after CL 185117
The net/url error in question now quotes the URL, so update the expected output string. While at it, also update a comment in httputil, though that doesn't affect any test. Fixes #33910. Change-Id: I0981f528b24337c2952ef60c0db3b7ff72d72110 Reviewed-on: https://go-review.googlesource.com/c/go/+/192078 Run-TryBot: Daniel Martí <mvdan@mvdan.cc> Reviewed-by: Bryan C. Mills <bcmills@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/net/http/httputil/reverseproxy_test.go')
-rw-r--r--src/net/http/httputil/reverseproxy_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/http/httputil/reverseproxy_test.go b/src/net/http/httputil/reverseproxy_test.go
index 7f9dc0800f..f58e08867f 100644
--- a/src/net/http/httputil/reverseproxy_test.go
+++ b/src/net/http/httputil/reverseproxy_test.go
@@ -436,7 +436,7 @@ func TestReverseProxyCancelation(t *testing.T) {
}
if err == nil {
// This should be an error like:
- // Get http://127.0.0.1:58079: read tcp 127.0.0.1:58079:
+ // Get "http://127.0.0.1:58079": read tcp 127.0.0.1:58079:
// use of closed network connection
t.Error("Server.Client().Do() returned nil error; want non-nil error")
}