mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-09-14 11:06:13 +05:00
test: stabilize update api and title ci checks
This commit is contained in:
parent
e4ec848da8
commit
ad43842691
@ -86,7 +86,7 @@ def test_cli_update_api_supports_all_snapshot_list_filters_with_real_rows(tmp_pa
|
||||
"post",
|
||||
"/api/v1/cli/update",
|
||||
api_token=api_token,
|
||||
json={**body, "batch_size": 100, "index_only": True},
|
||||
json={**body, "batch_size": 100, "migrate_only": True},
|
||||
timeout=30,
|
||||
)
|
||||
assert response.status_code == 200, f"{label}: {response.text}"
|
||||
|
||||
@ -27,12 +27,12 @@ def _install_chrome(tmp_path, env):
|
||||
assert install_process.returncode == 0, install_process.stderr or install_process.stdout
|
||||
|
||||
|
||||
def _wait_for_snapshot_title(data_dir, *, timeout=30):
|
||||
def _wait_for_snapshot_title(data_dir, *, timeout=60):
|
||||
deadline = time.time() + timeout
|
||||
title = None
|
||||
while time.time() < deadline:
|
||||
with use_archivebox_db(data_dir):
|
||||
title = Snapshot.objects.values_list("title", flat=True).get()
|
||||
title = Snapshot.objects.get().resolved_title
|
||||
if title:
|
||||
return title
|
||||
time.sleep(0.5)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user