diff --git a/backend/test_nightly/test_storage_quota.py b/backend/test_nightly/test_storage_quota.py index 89b062ffa9..dee7a70c9b 100644 --- a/backend/test_nightly/test_storage_quota.py +++ b/backend/test_nightly/test_storage_quota.py @@ -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, }, @@ -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(