There was an error while loading. Please reload this page.
1 parent 1717761 commit 2ab4981Copy full SHA for 2ab4981
tests/test.py
@@ -26,15 +26,17 @@ def get_analysis_status(aid):
26
27
28
def expect_url(aid):
29
- for _ in range(60):
+ for t in range(180):
30
status = get_analysis_status(aid)
31
- print("{}: {}".format(aid, status["status"]))
+ print("{}: ({}) {}".format(aid, t, status["status"]))
32
if status["status"] in ["pending", "in-progress"]:
33
time.sleep(1)
34
continue
35
assert status["status"] == "success"
36
print("{}: {}".format(aid, json.dumps(status, indent=4)))
37
assert "hello.example" in status["results"]["urls"]
38
+ else:
39
+ raise Exception("Analysis took too long")
40
41
42
aid = start_analysis(b"""
0 commit comments