Give test_crawl_timeout 10 mins to finish (#1627)
Related to https://github.com/webrecorder/browsertrix-cloud/issues/1620 Follow-up to https://github.com/webrecorder/browsertrix-cloud/pull/1621, which didn't seem to fix the problem. I'm giving it much more time here in the hopes that it solves it (since it's a nightly test, time shouldn't be such a pressing issue).
This commit is contained in:
parent
e9895e78a2
commit
66b4532321
@ -17,8 +17,8 @@ def test_crawl_timeout(admin_auth_headers, default_org_id, timeout_crawl):
|
|||||||
|
|
||||||
attempts = 0
|
attempts = 0
|
||||||
while True:
|
while True:
|
||||||
# Try for 2 minutes before failing
|
# Try for 10 minutes before failing
|
||||||
if attempts > 24:
|
if attempts > 30:
|
||||||
assert False
|
assert False
|
||||||
|
|
||||||
r = requests.get(
|
r = requests.get(
|
||||||
@ -27,7 +27,7 @@ def test_crawl_timeout(admin_auth_headers, default_org_id, timeout_crawl):
|
|||||||
)
|
)
|
||||||
if r.json()["state"] == "complete":
|
if r.json()["state"] == "complete":
|
||||||
break
|
break
|
||||||
time.sleep(10)
|
time.sleep(20)
|
||||||
attempts += 1
|
attempts += 1
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user