Skip to content

Commit

Permalink
fix(types): part set back to 5 parts
Browse files Browse the repository at this point in the history
  • Loading branch information
Wondertan committed Jul 9, 2021
1 parent 9174d8b commit d0c602a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions types/block_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,12 @@ func TestBlockMakePartSetWithEvidence(t *testing.T) {
ev := NewMockDuplicateVoteEvidenceWithValidator(h, time.Now(), vals[0], "block-test-chain")
evList := []Evidence{ev}

partSet := MakeBlock(h, []Tx{Tx("Hello World")}, evList, nil, Messages{}, commit).MakePartSet(512)
block := MakeBlock(h, []Tx{Tx("Hello World")}, evList, nil, Messages{}, commit)
_, err = block.RowSet(context.TODO(), mdutils.Mock())
require.NoError(t, err)
partSet := block.MakePartSet(512)
assert.NotNil(t, partSet)
assert.EqualValues(t, 4, partSet.Total())
assert.EqualValues(t, 5, partSet.Total())
}

func TestBlockHashesTo(t *testing.T) {
Expand Down

0 comments on commit d0c602a

Please sign in to comment.