diff options
author | Linus Nordberg <linus@nordu.net> | 2017-02-08 10:38:17 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2017-02-08 10:38:17 +0100 |
commit | c1ac7daa7589346f7308e5399452e3a7993a1b85 (patch) | |
tree | 70a43b0ef3f28fd8396823fa927038b8ece676de /tools/testcase1.py | |
parent | b188fcc29c3df97978e5da4a87b946b300d79932 (diff) |
Have loginfo.py tolerate 500 for a while when waiting for STH.
Diffstat (limited to 'tools/testcase1.py')
-rwxr-xr-x | tools/testcase1.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/tools/testcase1.py b/tools/testcase1.py index 233415a..fb081e5 100755 --- a/tools/testcase1.py +++ b/tools/testcase1.py @@ -150,15 +150,6 @@ def get_and_check_entry(timestamp, chain, leaf_index, baseurl): len(submittedcertchain), len(submittedcertchain)) -def get_sth_retry(baseurl, tries=1): - for i in range(tries): - try: - return get_sth(baseurl) - except requests.exceptions.HTTPError, e: - if e.response.status_code == 500: - sleep(1) - raise e - def correct_tree_size(expected): for baseurl in baseurls: sth = get_sth_retry(baseurl, tries=10) |