Skip to content

Commit

Permalink
fix: broken tx pruning test
Browse files Browse the repository at this point in the history
  • Loading branch information
ninabarbakadze committed Jun 19, 2024
1 parent f121d16 commit 25990ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion store/store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,7 @@ func TestPruneBlocksPrunesTxs(t *testing.T) {
partSet := block.MakePartSet(2)
seenCommit := makeTestCommit(h, cmttime.Now())
blockStore.SaveBlock(block, partSet, seenCommit)
blockStore.SaveTxInfo(block, make([]uint32, len(block.Txs)))
for _, tx := range block.Txs {
indexedTxHashes = append(indexedTxHashes, tx.Hash())
}
Expand Down Expand Up @@ -633,7 +634,8 @@ func TestPruneBlocksPrunesTxs(t *testing.T) {
txInfo := blockStore.LoadTxInfo(tx.Hash())
require.NoError(t, err)
require.Equal(t, h, txInfo.Height)
require.Equal(t, int64(i), txInfo.Index)
require.Equal(t, uint32(i), txInfo.Index)
require.Equal(t, uint32(0), txInfo.Code)
}
}
}
Expand Down

0 comments on commit 25990ea

Please sign in to comment.