diff --git a/tests/nodeos_forked_chain_test.py b/tests/nodeos_forked_chain_test.py index e7cc92f26f0..ce9bb776de6 100755 --- a/tests/nodeos_forked_chain_test.py +++ b/tests/nodeos_forked_chain_test.py @@ -462,7 +462,7 @@ def getBlock(self, blockNum): Print("Tracking the blocks from the divergence till there are 10*12 blocks on one chain and 10*12+1 on the other, from block %d to %d" % (killBlockNum, lastBlockNum)) - for blockNum in range(killBlockNum,lastBlockNum): + for blockNum in range(killBlockNum,lastBlockNum + 1): blockProducer0=prodNodes[0].getBlockProducerByNum(blockNum) blockProducer1=prodNodes[1].getBlockProducerByNum(blockNum) blockProducers0.append({"blockNum":blockNum, "prod":blockProducer0}) diff --git a/tests/nodeos_short_fork_take_over_test.py b/tests/nodeos_short_fork_take_over_test.py index 77d30c72dcc..b65bc9892f0 100755 --- a/tests/nodeos_short_fork_take_over_test.py +++ b/tests/nodeos_short_fork_take_over_test.py @@ -313,7 +313,7 @@ def getMinHeadAndLib(prodNodes): Print("Tracking the blocks from the divergence till there are 10*12 blocks on one chain and 10*12+1 on the other, from block %d to %d" % (killBlockNum, lastBlockNum)) - for blockNum in range(killBlockNum,lastBlockNum): + for blockNum in range(killBlockNum,lastBlockNum + 1): blockProducer0=prodNodes[0].getBlockProducerByNum(blockNum) blockProducer1=prodNodes[1].getBlockProducerByNum(blockNum) blockProducers0.append({"blockNum":blockNum, "prod":blockProducer0})