Skip to content

Commit

Permalink
revert accidentally commited debug code; properly return exit status
Browse files Browse the repository at this point in the history
  • Loading branch information
mkochanowicz committed Mar 2, 2018
1 parent 27f67e1 commit e9dec18
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
11 changes: 4 additions & 7 deletions python_scripts/tests/api_tests/test_ah_get_account_history.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def main():
else:
compare_results(url1, url2, accounts)

return errors
exit( errors )


def create_wdir():
Expand Down Expand Up @@ -116,7 +116,7 @@ def compare_results(url1, url2, accounts, max_tries=10, timeout=0.1):
def get_account_history(url1, url2, account, max_tries=10, timeout=0.1):
global wdir
START = -1
HARD_LIMIT = 10
HARD_LIMIT = 10000
LIMIT = HARD_LIMIT

while True:
Expand Down Expand Up @@ -158,11 +158,8 @@ def get_account_history(url1, url2, account, max_tries=10, timeout=0.1):

if last == 0: break

with open("13488.json", "a") as file:
json.dump(history, file, indent=2, sort_keys=True)
file.write('\n')

START = last - 1
--last
START = last
LIMIT = last if last < HARD_LIMIT else HARD_LIMIT
# while True

Expand Down
2 changes: 1 addition & 1 deletion python_scripts/tests/api_tests/test_ah_get_ops_in_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def main():
else:
compare_results(first_block, last_block, url1, url2)

return errors
exit( errors )


def create_wdir():
Expand Down

0 comments on commit e9dec18

Please sign in to comment.