Skip to content

Commit

Permalink
Test against simpler site
Browse files Browse the repository at this point in the history
  • Loading branch information
tw4l committed Oct 7, 2024
1 parent 9cea545 commit 3490c09
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions backend/test_nightly/test_storage_quota.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def run_crawl(org_id, headers):
"runNow": True,
"name": "Storage Quota",
"config": {
"seeds": [{"url": "https://webrecorder.net/"}],
"seeds": [{"url": "https://specs.webrecorder.net/"}],
"extraHops": 1,
"limit": 20,
},
Expand Down Expand Up @@ -65,17 +65,10 @@ def test_crawl_stopped_when_storage_quota_reached(org_with_quotas, admin_auth_he
):
time.sleep(2)

count = 0
while True:
crawl_status = get_crawl_status(org_with_quotas, crawl_id, admin_auth_headers)
if crawl_status == "stopped_storage_quota_reached":
break

if count >= 5:
assert False

time.sleep(5)
count += 1
assert (
get_crawl_status(org_with_quotas, crawl_id, admin_auth_headers)
== "stopped_storage_quota_reached"
)

# Ensure crawl storage went over quota
r = requests.get(
Expand Down

0 comments on commit 3490c09

Please sign in to comment.