Skip to content

Commit

Permalink
GH-2102 Improve test conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Apr 5, 2024
1 parent 23945ff commit ba5006e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/lib_advance_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
assert prodD.getIrreversibleBlockNum() > max(libProdABeforeKill, libProdDBeforeKill)

# instant finality does not drop late blocks, but can still get unlinkable when syncing and getting a produced block
allowedUnlinkableBlocks = afterBlockNum-beforeBlockNum if not activateIF else 5
allowedUnlinkableBlocks = afterBlockNum-beforeBlockNum
logFile = Utils.getNodeDataDir(prodNode3.nodeId) + "/stderr.txt"
f = open(logFile)
contents = f.read()
Expand Down
2 changes: 1 addition & 1 deletion tests/nodeos_snapshot_diff_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def waitForBlock(node, blockNum, blockType=BlockType.head, timeout=None, reportI
assert ret is not None, "Snapshot scheduling failed"

Print("Wait for programmable node lib to advance")
waitForBlock(nodeProg, ret_head_block_num+1, blockType=BlockType.lib)
waitForBlock(nodeProg, ret_head_block_num, blockType=BlockType.lib)

Print("Kill programmable node")
nodeProg.kill(signal.SIGTERM)
Expand Down

0 comments on commit ba5006e

Please sign in to comment.