Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
k1LoW committed Sep 3, 2024
1 parent 3203f28 commit d56b76b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions rcutil_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,7 @@ func TestEncodeAndDecode(t *testing.T) {
})
opts := []cmp.Option{
cmpopts.IgnoreFields(http.Response{}, "Body"),
cmpopts.IgnoreFields(http.Request{}, "Body", "TransferEncoding", "Proto", "ProtoMajor", "ProtoMinor", "ContentLength"),
cmpopts.IgnoreFields(http.Request{}, "ctx"),
cmpopts.IgnoreFields(http.Request{}, "Body", "TransferEncoding", "Proto", "ProtoMajor", "ProtoMinor", "ContentLength", "ctx", "pat", "matches", "otherValues"),
}
if diff := cmp.Diff(tt.wantReq, gotReq, opts...); diff != "" {
t.Error(diff)
Expand Down Expand Up @@ -280,8 +279,7 @@ func TestDeprecatedEncodeAndDecode(t *testing.T) {
})
opts := []cmp.Option{
cmpopts.IgnoreFields(http.Response{}, "Body"),
cmpopts.IgnoreFields(http.Request{}, "Body"),
cmpopts.IgnoreFields(http.Request{}, "ctx"),
cmpopts.IgnoreFields(http.Request{}, "Body", "ctx", "pat", "matches", "otherValues"),
}
if diff := cmp.Diff(tt.wantReq, gotReq, opts...); diff != "" {
t.Error(diff)
Expand Down

0 comments on commit d56b76b

Please sign in to comment.