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 } }