From 4d8d2a846f14b0c46d3682aff63d0e867dc82499 Mon Sep 17 00:00:00 2001 From: Kevin Heifner Date: Wed, 28 Aug 2024 08:38:59 -0500 Subject: [PATCH] GH-653 Fix flakiness of test by not having it pause production and make sure production is enabled on restart --- tests/liveness_test.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/liveness_test.py b/tests/liveness_test.py index f7ad30012f..9dd45c8bb5 100755 --- a/tests/liveness_test.py +++ b/tests/liveness_test.py @@ -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: @@ -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