simplify test

This commit is contained in:
William Banfield
2022-02-21 19:33:42 -05:00
parent 32ee73ac5d
commit 0a24a4d885
2 changed files with 1 additions and 9 deletions
-1
View File
@@ -1462,7 +1462,6 @@ func (cs *State) defaultDoPrevote(ctx context.Context, height int64, round int32
if err != nil {
panic(fmt.Sprintf("ProcessProposal: %v", err))
}
fmt.Println("valid? ", isAppValid)
// Vote nil if the Application rejected the block
if !isAppValid {
+1 -8
View File
@@ -1967,22 +1967,15 @@ func TestProcessProposalAccept(t *testing.T) {
addr := pv1.Address()
voteCh := subscribeToVoter(ctx, t, cs1, addr)
// start round and wait for propose and prevote
startTestRound(ctx, cs1, cs1.Height, round)
ensureNewRound(t, newRoundCh, height, round)
ensureNewProposal(t, proposalCh, height, round)
rs := cs1.GetRoundState()
propBlock := rs.ProposalBlock
partSet, err := propBlock.MakePartSet(types.BlockPartSizeBytes)
require.NoError(t, err)
blockID := types.BlockID{
Hash: propBlock.Hash(),
PartSetHeader: partSet.Header(),
}
var prevoteHash tmbytes.HexBytes
if !testCase.expectedNilPrevote {
prevoteHash = blockID.Hash
prevoteHash = rs.ProposalBlock.Hash()
}
ensurePrevoteMatch(t, voteCh, height, round, prevoteHash)
})