diff --git a/http2/transport_test.go b/http2/transport_test.go index 7fe1d16d60..a17aa4a8f1 100644 --- a/http2/transport_test.go +++ b/http2/transport_test.go @@ -4516,7 +4516,7 @@ func TestTransportBodyLargerThanSpecifiedContentLength_len2(t *testing.T) { func testTransportBodyLargerThanSpecifiedContentLength(t *testing.T, body *chunkReader, contentLen int64) { st := newServerTester(t, func(w http.ResponseWriter, r *http.Request) { - // Nothing. + r.Body.Read(make([]byte, 6)) }, optOnlyServer) defer st.Close()