fix: clear verified queue blockers and exit idle orphan workers
This commit is contained in:
1 parent
96e179ba65
commit
ca39fb3517
16 files changed
+537
-70
No files matched your search
@@ -96,8 +96,8 @@ def test_cleanup_verify_processes_confirms_absent_worker_parent_and_lm(monkeypat
|
||||
from cbb_refresh_verify import mentor_adapter
|
||||
|
||||
terminated = []
|
||||
monkeypatch.setattr(mentor_adapter, '_terminate_pid',
|
||||
lambda pid, **_kwargs: terminated.append(int(pid)))
|
||||
monkeypatch.setattr(mentor_adapter.subprocess, 'run',
|
||||
lambda *args, **kwargs: terminated.append(args))
|
||||
monkeypatch.setattr(mentor_adapter, '_process_details', lambda _name: ())
|
||||
result = cleanup_verify_processes(101, 202, 303, emit=lambda **event: None)
|
||||
assert terminated == []
|
||||
@@ -120,8 +120,8 @@ def test_cleanup_verify_processes_discovers_unbound_target_pcb_processes(monkeyp
|
||||
(999, r'C:\Mentor\wg\ExpeditionPCB.exe', command, 0),
|
||||
],
|
||||
)
|
||||
monkeypatch.setattr(mentor_adapter, '_terminate_pid',
|
||||
lambda pid, **_kwargs: terminated.append(int(pid)))
|
||||
monkeypatch.setattr(mentor_adapter.subprocess, 'run',
|
||||
lambda *args, **kwargs: terminated.append(args))
|
||||
|
||||
result = mentor_adapter.cleanup_verify_processes(
|
||||
101,
|
||||
|
||||
Reference in new issue
Block a user