Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
fix nodeos_under_min_avail_ram_lr_test
Browse files Browse the repository at this point in the history
  • Loading branch information
taokayan authored and brianjohnson5972 committed Oct 5, 2018
1 parent 728511d commit 1372efb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/nodeos_under_min_avail_ram.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def setName(self, num):
Print("NamedAccounts Name for %d is %s" % (temp, retStr))
return retStr


###############################################################
# nodeos_voting_test
# --dump-error-details <Upon error print etc/eosio/node_*/config.ini and var/lib/node_*/stderr.log to stdout>
Expand Down Expand Up @@ -155,6 +156,7 @@ def setName(self, num):
count=0
while keepProcessing:
numAmount+=1
timeOutCount=0
for fromIndex in range(namedAccounts.numAccounts):
count+=1
toIndex=fromIndex+1
Expand All @@ -167,8 +169,15 @@ def setName(self, num):
try:
trans=nodes[0].pushMessage(contract, action, data, opts)
if trans is None or not trans[0]:
timeOutCount+=1
if timeOutCount>=3:
Print("Failed to push create action to eosio contract for %d consecutive times, looks like nodeos already exited." % (timeOutCount))
keepProcessing=False
break
Print("Failed to push create action to eosio contract. sleep for 60 seconds")
time.sleep(60)
else:
timeOutCount=0
time.sleep(1)
except TypeError as ex:
keepProcessing=False
Expand Down

0 comments on commit 1372efb

Please sign in to comment.