From ad43842691cfe1787ede25e5f2be78e832357384 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Tue, 2 Jun 2026 19:11:54 -0700 Subject: [PATCH] test: stabilize update api and title ci checks --- archivebox/tests/test_api_v1_cli_update.py | 2 +- archivebox/tests/test_config_SAVE_TITLE.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/archivebox/tests/test_api_v1_cli_update.py b/archivebox/tests/test_api_v1_cli_update.py index cadf4c72..fae08df2 100644 --- a/archivebox/tests/test_api_v1_cli_update.py +++ b/archivebox/tests/test_api_v1_cli_update.py @@ -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}" diff --git a/archivebox/tests/test_config_SAVE_TITLE.py b/archivebox/tests/test_config_SAVE_TITLE.py index 5ac31167..6282d49e 100644 --- a/archivebox/tests/test_config_SAVE_TITLE.py +++ b/archivebox/tests/test_config_SAVE_TITLE.py @@ -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)