Skip to content

Commit

Permalink
tests: remove superflous WriteHeader call from buffer tests (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamvduke authored Dec 16, 2024
1 parent c232cee commit c006fc1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion buffer/buffer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,6 @@ func TestBuffer_GRPC_OKResponse(t *testing.T) {
srv := testutils.NewHandler(func(w http.ResponseWriter, _ *http.Request) {
w.Header().Set("Grpc-Status", "0" /* OK */)
_, _ = w.Write([]byte("grpc-body"))
w.WriteHeader(http.StatusOK)

// To skip the "Content-Length" header.
w.(http.Flusher).Flush()
Expand Down

0 comments on commit c006fc1

Please sign in to comment.