Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
romainmenke committed Nov 20, 2023
1 parent 1a524e4 commit 86f9979
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion http/interceptor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,11 @@ func TestPusher(t *testing.T) {

rw, responseProcessor := wrap(resWithPush, req, tx)
rw.WriteHeader(204)
rw.(http.Pusher).Push("http://example.com", nil)
err = rw.(http.Pusher).Push("http://example.com", nil)
if err != nil {
t.Errorf("unexpected error: %v", err)
}

// although we called WriteHeader, status code should be applied until
// responseProcessor is called.
if unwanted, have := 204, res.Code; unwanted == have {
Expand Down

0 comments on commit 86f9979

Please sign in to comment.