Skip to content

Commit

Permalink
Merge pull request #254 from testwill/dev
Browse files Browse the repository at this point in the history
chore: use bytes.Equal instead bytes.Compare
  • Loading branch information
imroc committed Jul 12, 2023
2 parents 580ebee + 88d2db6 commit 7522273
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/http2/transport_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4757,7 +4757,7 @@ func testTransportBodyReadError(t *testing.T, body []byte) {
// If the client's done, it
// will have reported any
// errors on its side.
if bytes.Compare(receivedBody, body) != 0 {
if !bytes.Equal(receivedBody, body) {
return fmt.Errorf("body: %q; expected %q", receivedBody, body)
}
if resetCount != 1 {
Expand Down

0 comments on commit 7522273

Please sign in to comment.