Skip to content

Commit

Permalink
Merge pull request #1343 from AntelopeIO/GH-1244-retry-test
Browse files Browse the repository at this point in the history
Test fix: nodeos_retry_transaction_test
  • Loading branch information
heifner authored Jun 26, 2023
2 parents f870aa3 + 66b2047 commit 716e293
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/nodeos_retry_transaction_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ***

Expand Down Expand Up @@ -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 )
Expand Down

0 comments on commit 716e293

Please sign in to comment.