From a63861f0e2a2d7c00df10bb455385288a479eb44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=E7=99=BD=E5=8F=94?= <11794527+absfan@user.noreply.gitee.com> Date: Wed, 25 Nov 2026 12:13:09 +0800 Subject: [PATCH] test: use the Windows snapshot in catalog wait integration tests --- tests/test_issue15_ui_integration.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_issue15_ui_integration.py b/tests/test_issue15_ui_integration.py index 2fe8cf2..ec94c8f 100644 --- a/tests/test_issue15_ui_integration.py +++ b/tests/test_issue15_ui_integration.py @@ -723,11 +723,11 @@ def test_external_catalog_owner_wait_retries_once_or_cancels(qtbot, tmp_path, mo raise NativeOperationError('LIBRARY_MANAGER_BUSY: 已有 Library Manager 运行。', safe_to_continue=True) return Catalog(path, 1, (CatalogEntry('A', 'Logical-Physical'),)) - def owners(*args, **kwargs): + def owners(_name): probing.set() - return [] if released.is_set() else [{'pid': 123}] + return [] if released.is_set() else [123] - monkeypatch.setattr('cbb_refresh_verify.owner_probe.query_owners', owners) + monkeypatch.setattr('cbb_refresh_verify.owner_probe.snapshot_process_ids', owners) window = window_for(qtbot, tmp_path, monkeypatch, reader=lambda _: LibraryReadResult((CbbRecord('A', 'LP'),), directory_count=1), catalog_reader=read_catalog, status_refresher=lambda names, _: {name: 'READY' for name in names})