|
|
@ -13,7 +13,6 @@ import ( |
|
|
|
|
|
|
|
"github.com/tendermint/tendermint/abci/example/kvstore" |
|
|
|
abci "github.com/tendermint/tendermint/abci/types" |
|
|
|
abcitypes "github.com/tendermint/tendermint/abci/types" |
|
|
|
abcimocks "github.com/tendermint/tendermint/abci/types/mocks" |
|
|
|
"github.com/tendermint/tendermint/crypto/tmhash" |
|
|
|
cstypes "github.com/tendermint/tendermint/internal/consensus/types" |
|
|
@ -1945,7 +1944,7 @@ func TestProcessProposalAccept(t *testing.T) { |
|
|
|
if testCase.accept { |
|
|
|
status = abci.ResponseProcessProposal_ACCEPT |
|
|
|
} |
|
|
|
m.On("ProcessProposal", mock.Anything).Return(abcitypes.ResponseProcessProposal{Status: status}) |
|
|
|
m.On("ProcessProposal", mock.Anything).Return(abci.ResponseProcessProposal{Status: status}) |
|
|
|
cs1, _ := makeState(ctx, t, makeStateArgs{config: config, application: m}) |
|
|
|
height, round := cs1.Height, cs1.Round |
|
|
|
|
|
|
@ -1993,11 +1992,11 @@ func TestFinalizeBlockCalled(t *testing.T) { |
|
|
|
defer cancel() |
|
|
|
|
|
|
|
m := abcimocks.NewBaseMock() |
|
|
|
m.On("ProcessProposal", mock.Anything).Return(abcitypes.ResponseProcessProposal{Status: abci.ResponseProcessProposal_ACCEPT}) |
|
|
|
m.On("VerifyVoteExtension", mock.Anything).Return(abcitypes.ResponseVerifyVoteExtension{ |
|
|
|
Status: abcitypes.ResponseVerifyVoteExtension_ACCEPT, |
|
|
|
m.On("ProcessProposal", mock.Anything).Return(abci.ResponseProcessProposal{Status: abci.ResponseProcessProposal_ACCEPT}) |
|
|
|
m.On("VerifyVoteExtension", mock.Anything).Return(abci.ResponseVerifyVoteExtension{ |
|
|
|
Status: abci.ResponseVerifyVoteExtension_ACCEPT, |
|
|
|
}) |
|
|
|
m.On("FinalizeBlock", mock.Anything).Return(abcitypes.ResponseFinalizeBlock{}).Maybe() |
|
|
|
m.On("FinalizeBlock", mock.Anything).Return(abci.ResponseFinalizeBlock{}).Maybe() |
|
|
|
cs1, vss := makeState(ctx, t, makeStateArgs{config: config, application: m}) |
|
|
|
height, round := cs1.Height, cs1.Round |
|
|
|
|
|
|
|