diff --git a/cr/state/keyframe_test.go b/cr/state/keyframe_test.go index b84aaa672..b4b2b86ab 100644 --- a/cr/state/keyframe_test.go +++ b/cr/state/keyframe_test.go @@ -541,7 +541,7 @@ func randomProposalKeyframe() *ProposalKeyFrame { for j := uint64(0); j < i; j++ { reserverCustomIDs = append(reserverCustomIDs, randomString()) } - proposalKeyFrame.ReservedCustomIDLists = append(proposalKeyFrame.ReservedCustomIDLists, reserverCustomIDs) + proposalKeyFrame.ReservedCustomIDLists = append(proposalKeyFrame.ReservedCustomIDLists, reserverCustomIDs...) } var receivedCustomIDs []string @@ -550,7 +550,7 @@ func randomProposalKeyframe() *ProposalKeyFrame { for j := uint64(0); j < i; j++ { receivedCustomIDs = append(receivedCustomIDs, randomString()) } - proposalKeyFrame.ReceivedCustomIDLists = append(proposalKeyFrame.ReceivedCustomIDLists, receivedCustomIDs) + proposalKeyFrame.ReceivedCustomIDLists = append(proposalKeyFrame.ReceivedCustomIDLists, receivedCustomIDs...) } return proposalKeyFrame } diff --git a/go.mod b/go.mod index 7d9cf5ab6..f2ed54dd3 100644 --- a/go.mod +++ b/go.mod @@ -13,7 +13,7 @@ require ( github.com/rs/cors v1.7.0 github.com/stretchr/testify v1.4.0 github.com/syndtr/goleveldb v1.0.0 - github.com/tidwall/gjson v1.3.2 + github.com/tidwall/gjson v1.8.1 github.com/urfave/cli v1.22.0 github.com/yuin/gopher-lua v0.0.0-20190514113301-1cd887cd7036 golang.org/x/crypto v0.0.0-20191227163750-53104e6ec876