mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-22 01:11:32 +00:00
Review comments: @melekes suggestions
require instead of assert Co-Authored-By: Liamsi <Ismail.Khoffi@gmail.com>
This commit is contained in:
@ -115,7 +115,7 @@ func TestStateProposerSelection2(t *testing.T) {
|
||||
for i := 0; i < len(vss); i++ {
|
||||
prop := cs1.GetRoundState().Validators.GetProposer()
|
||||
addr, err := vss[(i+round)%len(vss)].GetAddress()
|
||||
assert.NoError(t, err)
|
||||
require.NoError(t, err)
|
||||
correctProposer := addr
|
||||
if !bytes.Equal(prop.Address, correctProposer) {
|
||||
panic(fmt.Sprintf("expected RoundState.Validators.GetProposer() to be validator %d. Got %X", (i+2)%len(vss), prop.Address))
|
||||
|
Reference in New Issue
Block a user