From 9bd0873ccd4b0e9cc1111e1b4c313ab93faf1aac Mon Sep 17 00:00:00 2001 From: sanaz Date: Wed, 9 Aug 2023 20:41:33 +0300 Subject: [PATCH] clarifies why should we wait for timeout commit --- app/test/block_production_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/test/block_production_test.go b/app/test/block_production_test.go index f75e141237..11674b3e95 100644 --- a/app/test/block_production_test.go +++ b/app/test/block_production_test.go @@ -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)