diff --git a/staging/src/k8s.io/apimachinery/pkg/util/net/testing/http.go b/staging/src/k8s.io/apimachinery/pkg/util/net/testing/http.go index 665a461859f..21084602b42 100644 --- a/staging/src/k8s.io/apimachinery/pkg/util/net/testing/http.go +++ b/staging/src/k8s.io/apimachinery/pkg/util/net/testing/http.go @@ -131,13 +131,13 @@ func (h *HTTPProxyHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request) wg.Add(2) go func() { - defer h.t.Logf("Server read close, host=%s", req.Host) defer wg.Done() + defer h.t.Logf("Server read close, host=%s", req.Host) io.Copy(conn, sconn) }() go func() { - defer h.t.Logf("Server write close, host=%s", req.Host) defer wg.Done() + defer h.t.Logf("Server write close, host=%s", req.Host) io.Copy(sconn, conn) }()