Skip to content

Commit

Permalink
fix: TestProcessProposal
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-forbes committed Sep 18, 2023
1 parent d80e551 commit 2baaf49
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/test/process_proposal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"bytes"
"fmt"
"testing"
"time"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down Expand Up @@ -299,9 +300,14 @@ func TestProcessProposal(t *testing.T) {

for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
height := testApp.LastBlockHeight() + 1
blockTime := time.Now()

resp := testApp.PrepareProposal(abci.RequestPrepareProposal{
BlockData: tt.input,
ChainId: testutil.ChainID,
Height: height,
Time: blockTime,
})
require.Equal(t, len(tt.input.Txs), len(resp.BlockData.Txs))
tt.mutator(resp.BlockData)
Expand Down

0 comments on commit 2baaf49

Please sign in to comment.