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

Commit

Permalink
prune test fix due to found bug in framework
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmytro Sydorchenko authored and praphael committed Jun 11, 2021
1 parent ac4f491 commit a3970bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/eosio_blocklog_prune_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@

assert headAdvanced or lvnPostInfo["head_block_num"] >= cfTrxBlockNum, "the light validation node stops syncing"

fullValidationNode.waitForBlock(cfTrxBlockNum-1, blockType=BlockType.lib, timeout=WaitSpec.calculate(), errorContext="fullValidationNode LIB did not advance")
#lib will be cfTrxBlockNum-2 and head cfTrxBlockNum-1 because of when we will receive incomplete block we won't advance lib
fullValidationNode.waitForBlock(cfTrxBlockNum-2, blockType=BlockType.lib, timeout=WaitSpec.calculate(leeway=timeForNodesToWorkOutReconnect), errorContext="fullValidationNode LIB did not advance")
Utils.Print("Ensure full validation node stops syncing")
headAdvanced = fullValidationNode.waitForHeadToAdvance()
if headAdvanced:
Expand Down

0 comments on commit a3970bd

Please sign in to comment.