From e293a9b03c19a50af4a8c8846e1d650ae5443e47 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: Mon, 23 Nov 2026 19:52:33 +0800 Subject: [PATCH] test: await background native mapping handoff --- tests/test_native_backup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_native_backup.py b/tests/test_native_backup.py index 84d7b74..fcca5cd 100644 --- a/tests/test_native_backup.py +++ b/tests/test_native_backup.py @@ -228,6 +228,7 @@ def test_confirmed_native_close_transfers_mapping_to_current_library(qtbot, tmp_ path_lease=old, process=SimpleNamespace(poll=lambda: 0)) window._poll_native_backup(); qtbot.waitUntil(lambda: not window.busy) assert window._native_backup_session is None + qtbot.waitUntil(lambda: window._lease_pending == 0) assert backend.cancelled == [] and current.created window.close() qtbot.waitUntil(lambda: backend.cancelled == [current.drive])