From 670ca36084797a8b8813e50d6b8d70ad6eeda56e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20B=C3=B6ckli?= Date: Wed, 15 Jan 2025 13:31:14 +0100 Subject: [PATCH] refactor(ARCO-312): Ensure ordered processing of initial blocks --- test/init_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/init_test.go b/test/init_test.go index 061bbab8c..bc419196a 100644 --- a/test/init_test.go +++ b/test/init_test.go @@ -50,7 +50,7 @@ func setupSut() { if info.Blocks < minNumbeOfBlocks { // generate blocks in part to ensure blocktx is able to process all blocks - const blockBatch = 20 // should be less or equal n*10 where n is number of blocktx instances + const blockBatch = 1 // should be less or equal n*10 where n is number of blocktx instances for { _, err = bitcoind.Generate(blockBatch) @@ -59,7 +59,7 @@ func setupSut() { } // give time to send all INV messages - time.Sleep(5 * time.Second) + time.Sleep(100 * time.Millisecond) info, err = bitcoind.GetInfo() if err != nil { @@ -72,6 +72,6 @@ func setupSut() { } } - time.Sleep(5 * time.Second) // wait for fillGaps to fill eventual gaps + //time.Sleep(5 * time.Second) // wait for fillGaps to fill eventual gaps } }