Skip to content

Commit

Permalink
Merge pull request #2365 from AntelopeIO/GH-2364-retry-test
Browse files Browse the repository at this point in the history
IF: Test: Verify needed trx processed before continuing
  • Loading branch information
heifner authored Apr 2, 2024
2 parents 5b83d32 + c300efe commit f44409b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/nodeos_retry_transaction_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,10 @@
startTime = time.perf_counter()
Print("Create new accounts via %s" % (cluster.eosioAccount.name))
for account in accounts:
trans = node.createInitializeAccount(account, cluster.eosioAccount, stakedDeposit=0, waitForTransBlock=(account == accounts[-1]), stakeNet=1000, stakeCPU=1000, buyRAM=1000, exitOnError=True)
trans = node.createInitializeAccount(account, cluster.eosioAccount, stakedDeposit=0, waitForTransBlock=False, stakeNet=1000, stakeCPU=1000, buyRAM=1000, exitOnError=True)
checkTransIds.append(Node.getTransId(trans))

node.waitForTransactionsInBlock(checkTransIds)
nextTime = time.perf_counter()
Print("Create new accounts took %s sec" % (nextTime - startTime))
startTime = nextTime
Expand All @@ -146,18 +147,20 @@
for account in accounts:
transferAmount="1000.0000 {0}".format(CORE_SYMBOL)
Print("Transfer funds %s from account %s to %s" % (transferAmount, cluster.eosioAccount.name, account.name))
trans = node.transferFunds(cluster.eosioAccount, account, transferAmount, "test transfer", waitForTransBlock=(account == accounts[-1]), reportStatus=False)
trans = node.transferFunds(cluster.eosioAccount, account, transferAmount, "test transfer", waitForTransBlock=False, reportStatus=False)
checkTransIds.append(Node.getTransId(trans))

node.waitForTransactionsInBlock(checkTransIds)
nextTime = time.perf_counter()
Print("Transfer funds took %s sec" % (nextTime - startTime))
startTime = nextTime

Print("Delegate Bandwidth to new accounts")
for account in accounts:
trans=node.delegatebw(account, 200.0000, 200.0000, waitForTransBlock=(account == accounts[-1]), exitOnError=True, reportStatus=False)
trans=node.delegatebw(account, 200.0000, 200.0000, waitForTransBlock=False, exitOnError=True, reportStatus=False)
checkTransIds.append(Node.getTransId(trans))

node.waitForTransactionsInBlock(checkTransIds)
nextTime = time.perf_counter()
Print("Delegate Bandwidth took %s sec" % (nextTime - startTime))
startTime = nextTime
Expand Down

0 comments on commit f44409b

Please sign in to comment.