mirror of
https://github.com/tendermint/tendermint.git
synced 2026-02-08 21:10:10 +00:00
@@ -699,10 +699,10 @@ func TestPrepareProposalPanicOnInvalid(t *testing.T) {
|
||||
eventBus,
|
||||
)
|
||||
pa, _ := state.Validators.GetByIndex(0)
|
||||
commit := makeValidCommit(ctx, t, height, types.BlockID{}, state.Validators, privVals)
|
||||
commit, votes := makeValidCommit(ctx, t, height, types.BlockID{}, state.Validators, privVals)
|
||||
require.Panics(t,
|
||||
func() {
|
||||
blockExec.CreateProposalBlock(ctx, height, state, commit, pa, nil) //nolint:errcheck
|
||||
blockExec.CreateProposalBlock(ctx, height, state, commit, pa, votes) //nolint:errcheck
|
||||
})
|
||||
|
||||
mp.AssertExpectations(t)
|
||||
|
||||
Reference in New Issue
Block a user