test: stabilize update api and title ci checks

This commit is contained in:
Nick Sweeting 2026-06-02 19:11:54 -07:00
parent e4ec848da8
commit ad43842691
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View File

@ -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}"

View File

@ -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)