Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #9937 from EOSIO/develop_fork_test_failure_fix
Browse files Browse the repository at this point in the history
fix intermittent fork test failure in develop
  • Loading branch information
linhuang-blockone authored Jan 20, 2021
2 parents 04ada65 + 6c28c93 commit 6a9d988
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/nodeos_forked_chain_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down
2 changes: 1 addition & 1 deletion tests/nodeos_short_fork_take_over_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit 6a9d988

Please sign in to comment.