diff --git a/python_scripts/tests/api_tests/test_ah_get_account_history.py b/python_scripts/tests/api_tests/test_ah_get_account_history.py index ab4d587a6b..bf8b2d9cac 100755 --- a/python_scripts/tests/api_tests/test_ah_get_account_history.py +++ b/python_scripts/tests/api_tests/test_ah_get_account_history.py @@ -88,7 +88,7 @@ def main(): else: compare_results(url1, url2, accounts) - return errors + exit( errors ) def create_wdir(): @@ -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: @@ -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 diff --git a/python_scripts/tests/api_tests/test_ah_get_ops_in_block.py b/python_scripts/tests/api_tests/test_ah_get_ops_in_block.py index a6742aa738..2f34952b73 100755 --- a/python_scripts/tests/api_tests/test_ah_get_ops_in_block.py +++ b/python_scripts/tests/api_tests/test_ah_get_ops_in_block.py @@ -95,7 +95,7 @@ def main(): else: compare_results(first_block, last_block, url1, url2) - return errors + exit( errors ) def create_wdir():