aboutsummaryrefslogtreecommitdiff
path: root/src/net/http
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/http')
-rw-r--r--src/net/http/httputil/reverseproxy_test.go2
-rw-r--r--src/net/http/serve_test.go4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/net/http/httputil/reverseproxy_test.go b/src/net/http/httputil/reverseproxy_test.go
index a944e8e0f5..7f203d878f 100644
--- a/src/net/http/httputil/reverseproxy_test.go
+++ b/src/net/http/httputil/reverseproxy_test.go
@@ -392,7 +392,7 @@ func TestReverseProxy_Post(t *testing.T) {
backend := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
slurp, err := ioutil.ReadAll(r.Body)
if err != nil {
- t.Error("Backend body read = %v", err)
+ t.Errorf("Backend body read = %v", err)
}
if len(slurp) != len(requestBody) {
t.Errorf("Backend read %d request body bytes; want %d", len(slurp), len(requestBody))
diff --git a/src/net/http/serve_test.go b/src/net/http/serve_test.go
index 772d527576..cbe85d255b 100644
--- a/src/net/http/serve_test.go
+++ b/src/net/http/serve_test.go
@@ -1077,7 +1077,7 @@ Try:
}
}
if !ok {
- t.Fatal("Failed to start up after %d tries", maxTries)
+ t.Fatalf("Failed to start up after %d tries", maxTries)
}
defer ln.Close()
c, err := tls.Dial("tcp", ln.Addr().String(), &tls.Config{
@@ -2496,7 +2496,7 @@ func TestHijackBeforeRequestBodyRead(t *testing.T) {
gone := w.(CloseNotifier).CloseNotify()
slurp, err := ioutil.ReadAll(reqBody)
if err != nil {
- t.Error("Body read: %v", err)
+ t.Errorf("Body read: %v", err)
return
}
if len(slurp) != len(requestBody) {