Skip to content

Commit

Permalink
GH-1244 Test cluster now uses defproducera as the producer after clus…
Browse files Browse the repository at this point in the history
…ter launch
  • Loading branch information
heifner committed Jun 27, 2023
1 parent 716e293 commit 9d1c673
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/large-lib-test.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def relaunchNode(node: Node, chainArg="", skipGenesis=True, relaunchAssertMessag

Print("Wait for producing {} blocks".format(numBlocksToProduceBeforeRelaunch))
producingNode.waitForBlock(numBlocksToProduceBeforeRelaunch, blockType=BlockType.lib)
producingNode.waitForProducer("defproducera")

Print("Kill all node instances.")
for clusterNode in cluster.nodes:
Expand All @@ -83,8 +84,9 @@ def relaunchNode(node: Node, chainArg="", skipGenesis=True, relaunchAssertMessag
Utils.rmNodeDataDir(2)

Print ("Relaunch all cluster nodes instances.")
# -e -p eosio for resuming production, skipGenesis=False for launch the same chain as before
relaunchNode(producingNode, chainArg="-e -p eosio --sync-fetch-span 5 ", skipGenesis=False)
# -e for resuming production, defproducera only producer at this point
# skipGenesis=False for launch the same chain as before
relaunchNode(producingNode, chainArg="-e --sync-fetch-span 5 ", skipGenesis=False)
relaunchNode(speculativeNode1, chainArg="--sync-fetch-span 5 ")
relaunchNode(speculativeNode2, chainArg="--sync-fetch-span 5 ", skipGenesis=False)

Expand Down

0 comments on commit 9d1c673

Please sign in to comment.