fix: bind UI jobs and recovery actions to captured scope
This commit is contained in:
1 parent
601dd7b6b2
commit
cd7a5e0ca1
20 files changed
+1570
-297
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user