From 3e71e81938608b047097080d08093f06e3385947 Mon Sep 17 00:00:00 2001 From: William Banfield Date: Wed, 11 May 2022 22:15:57 -0400 Subject: [PATCH] fix test to bypass own verify vote extension --- internal/consensus/state_test.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/internal/consensus/state_test.go b/internal/consensus/state_test.go index 598be471b..bb07f3e41 100644 --- a/internal/consensus/state_test.go +++ b/internal/consensus/state_test.go @@ -2076,19 +2076,13 @@ func TestExtendVoteCalled(t *testing.T) { Hash: blockID.Hash, }) - m.AssertCalled(t, "VerifyVoteExtension", ctx, &abci.RequestVerifyVoteExtension{ - Hash: blockID.Hash, - ValidatorAddress: addr, - Height: height, - VoteExtension: []byte("extension"), - }) signAddVotes(ctx, t, cs1, tmproto.PrecommitType, config.ChainID(), blockID, vss[1:]...) ensureNewRound(t, newRoundCh, height+1, 0) m.AssertExpectations(t) // Only 3 of the vote extensions are seen, as consensus proceeds as soon as the +2/3 threshold // is observed by the consensus engine. - for _, pv := range vss[:3] { + for _, pv := range vss[1:3] { pv, err := pv.GetPubKey(ctx) require.NoError(t, err) addr := pv.Address()