From 66b2047686d9640d567f4cad95c4f6f23ba1101a Mon Sep 17 00:00:00 2001 From: Kevin Heifner Date: Mon, 26 Jun 2023 16:45:00 -0400 Subject: [PATCH] GH-1244 Verify bios relaunch and add a pause between relaunch of relay nodes for a better test --- tests/nodeos_retry_transaction_test.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/nodeos_retry_transaction_test.py b/tests/nodeos_retry_transaction_test.py index 7a5e061062..d1b82388da 100755 --- a/tests/nodeos_retry_transaction_test.py +++ b/tests/nodeos_retry_transaction_test.py @@ -88,7 +88,8 @@ Utils.Print("Bios node killed") # need bios to pass along blocks so api node can continue without its other peer, but drop trx which is the point of this test Utils.Print("Restart bios in drop transactions mode") - cluster.biosNode.relaunch("bios", addSwapFlags={"--p2p-accept-transactions": "false"}) + if not cluster.biosNode.relaunch(addSwapFlags={"--p2p-accept-transactions": "false"}): + Utils.errorExit("Failed to relaunch bios node") # *** create accounts to vote in desired producers *** @@ -270,6 +271,7 @@ def findTransInBlock(transId, transToBlock, node): if round % 3 == 0: relaunchTime = time.perf_counter() + time.sleep(1) # give time for transactions to be sent cluster.getNode(4).relaunch() cluster.getNode(6).relaunch() startRound = startRound - ( time.perf_counter() - relaunchTime )