fix: bind UI jobs and recovery actions to captured scope

This commit is contained in:
阿白叔 committed 2026-11-16 22:11:17 +08:00
1 parent 601dd7b6b2
commit cd7a5e0ca1
20 files changed
+1570 -297

No files matched your search

+2 -1
View File
@@ -49,7 +49,8 @@ def test_batch_result_is_visible_before_queued_refresh_and_survives_user_actions
other_started.set();other_release.wait(5)
thread=Thread(target=lambda:window.native_queue.run(other));thread.start()
try:
qtbot.waitUntil(lambda:len(window.native_queue.pending)==1)
# The queue retains both the active ticket and its waiting successor.
qtbot.waitUntil(lambda:len(window.native_queue.pending)==2)
release.set();qtbot.waitUntil(other_started.is_set)
qtbot.waitUntil(lambda:getattr(window,'summary',None) is not None,timeout=1500)
assert window.summary.isVisible() and window.busy