Skip to content

Commit

Permalink
Merge pull request #664 from AntelopeIO/GH-653-liveness-test-main
Browse files Browse the repository at this point in the history
[1.0 -> main] Test: Fix liveness_test.py integration test flakiness
  • Loading branch information
heifner authored Aug 28, 2024
2 parents 4b76e91 + 7ddd35b commit f5a0638
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/liveness_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@
cluster.setWalletMgr(walletMgr)
Print("Stand up cluster")

# *** setup topogrophy ***
# "mesh" shape connects nodeA and nodeA to each other
# test relies on production continuing
extraNodeosArgs=" --production-pause-vote-timeout-ms 0 "
# "mesh" shape connects nodeA and nodeB to each other
if cluster.launch(topo="mesh", pnodes=totalProducerNodes,
totalNodes=totalNodes, totalProducers=totalProducerNodes, loadSystemContract=False,
activateIF=activateIF, biosFinalizer=False) is False:
Expand Down Expand Up @@ -73,7 +74,7 @@

# relaunch node A so that quorum can be met
Print("Relaunching node A to make quorum")
if not prodA.relaunch():
if not prodA.relaunch(chainArg="--enable-stale-production"):
errorExit(f"Failure - node A should have restarted")

# verify LIB advances on both nodes
Expand Down

0 comments on commit f5a0638

Please sign in to comment.