Skip to content

Commit

Permalink
clarifies why should we wait for timeout commit
Browse files Browse the repository at this point in the history
  • Loading branch information
staheri14 committed Aug 9, 2023
1 parent a818d13 commit 9bd0873
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/test/block_production_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ func (s *BlockProductionTestSuite) Test_BlockOneTransactionNonInclusion() {
// Test_FirstBlockIsEmpty tests whether the first block is empty.
func (s *BlockProductionTestSuite) Test_FirstBlockIsEmpty() {
require := s.Require()
// wait until the node starts height 1
// wait until height 1 before posting transactions
// otherwise tx submission will fail
time.Sleep(1 * s.timeoutCommit)

// send some transactions, these should be included in the second block
_, err := s.cctx.PostData(s.accounts[0], flags.BroadcastBlock, appns.RandomBlobNamespace(), tmrand.Bytes(100000))
require.NoError(err)
Expand Down

0 comments on commit 9bd0873

Please sign in to comment.