Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-forbes committed Sep 18, 2023
1 parent 0f48861 commit f5710fc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion app/test/fuzz_abci_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package app_test

import (
"testing"
"time"

"github.com/celestiaorg/celestia-app/app"
"github.com/celestiaorg/celestia-app/app/encoding"
Expand Down Expand Up @@ -115,11 +116,17 @@ func TestPrepareProposalConsistency(t *testing.T) {
testutil.ChainID,
)
txs = append(txs, sendTxs...)

blockTime := time.Now()
height := testApp.LastBlockHeight() + 1

resp := testApp.PrepareProposal(abci.RequestPrepareProposal{
BlockData: &core.Data{
Txs: coretypes.Txs(txs).ToSliceOfBytes(),
},
ChainId: testutil.ChainID,
Time: blockTime,
Height: height,
})

// check that the square size is smaller than or equal to
Expand All @@ -132,7 +139,7 @@ func TestPrepareProposalConsistency(t *testing.T) {
DataHash: resp.BlockData.Hash,
ChainID: testutil.ChainID,
Version: version.Consensus{App: appconsts.LatestVersion},
Height: testApp.LastBlockHeight() + 1,
Height: height,
},
},
)
Expand Down

0 comments on commit f5710fc

Please sign in to comment.