fix: bound task handoff and preserve native writer ownership
This commit is contained in:
1 parent
0440b2efbf
commit
ddff6bd857
18 files changed
+1397
-118
No files matched your search
@@ -313,8 +313,12 @@ def test_private_worker_timeout_retains_native_and_never_kills(tmp_path, monkeyp
|
||||
def test_hidden_worker_and_probe_dispatch_before_qt(monkeypatch, tmp_path):
|
||||
import cbb_refresh_verify.native_management as native
|
||||
from cbb_refresh_verify.application import main
|
||||
from cbb_refresh_verify import desktop_worker
|
||||
# This dispatch represents a new worker process, not other tests' mocked clients.
|
||||
monkeypatch.setattr(desktop_worker, '_automation_clients', [])
|
||||
seen = []
|
||||
monkeypatch.setattr(native, 'management_worker_main', lambda p: (seen.append(p) or 17))
|
||||
(tmp_path/'job.json').write_text('{}')
|
||||
assert main(['--management-worker', str(tmp_path/'job.json')]) == 17
|
||||
assert seen == [tmp_path/'job.json']
|
||||
|
||||
|
||||
Reference in new issue
Block a user