From 6bc596f5d0633d2ce4ea2247967ec5606edcc9dc Mon Sep 17 00:00:00 2001 From: William Banfield Date: Wed, 22 Sep 2021 12:12:39 -0400 Subject: [PATCH] fix TestStateProposerSelection2 to precommit for nil correctly --- internal/consensus/state_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/consensus/state_test.go b/internal/consensus/state_test.go index 25d062046..43f4ef319 100644 --- a/internal/consensus/state_test.go +++ b/internal/consensus/state_test.go @@ -127,8 +127,8 @@ func TestStateProposerSelection2(t *testing.T) { prop.Address)) } - rs := cs1.GetRoundState() - signAddVotes(config, cs1, tmproto.PrecommitType, nil, rs.ProposalBlockParts.Header(), vss[1:]...) + signAddVotes(config, cs1, tmproto.PrecommitType, nil, types.PartSetHeader{}, vss[1:]...) + time.Sleep(time.Second) ensureNewRound(t, newRoundCh, height, i+round+1) // wait for the new round event each round incrementRound(vss[1:]...) }