Skip to content

Commit

Permalink
Merge pull request #72 from 2manymws/update-go-version
Browse files Browse the repository at this point in the history
Use oldstable
  • Loading branch information
k1LoW authored Sep 4, 2024
2 parents 1694cec + d56b76b commit 7dceca8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/2manymws/rcutil

go 1.21.12
go 1.22.6

require (
github.com/2manymws/keyrwmutex v1.1.0
Expand Down
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 7dceca8

Please sign in to comment.