mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-08 13:12:08 +00:00
test(tui): accept profile_home kwarg in _FakeWorker doubles
_SlashWorker call sites now pass profile_home=; the fakes' 2-arg __init__ raised TypeError inside the spawn guard, leaving slash_worker=None and failing the orphan-race regression tests.
This commit is contained in:
parent
c6a3d412d4
commit
4f6313eadc
1 changed files with 5 additions and 5 deletions
|
|
@ -1947,7 +1947,7 @@ def test_init_session_fires_reset_hook(monkeypatch):
|
|||
hooks = []
|
||||
|
||||
class _FakeWorker:
|
||||
def __init__(self, key, model):
|
||||
def __init__(self, key, model, profile_home=None):
|
||||
self.key = key
|
||||
|
||||
def close(self):
|
||||
|
|
@ -5453,7 +5453,7 @@ def test_session_create_close_race_does_not_orphan_worker(monkeypatch):
|
|||
unregistered_keys: list[str] = []
|
||||
|
||||
class _FakeWorker:
|
||||
def __init__(self, key, model):
|
||||
def __init__(self, key, model, profile_home=None):
|
||||
self.key = key
|
||||
self._closed = False
|
||||
|
||||
|
|
@ -5574,7 +5574,7 @@ def test_session_create_no_race_keeps_worker_alive(monkeypatch):
|
|||
unregistered_keys: list[str] = []
|
||||
|
||||
class _FakeWorker:
|
||||
def __init__(self, key, model):
|
||||
def __init__(self, key, model, profile_home=None):
|
||||
self.key = key
|
||||
|
||||
def close(self):
|
||||
|
|
@ -5678,7 +5678,7 @@ def test_get_db_degrades_cleanly_when_sessiondb_init_fails(monkeypatch):
|
|||
|
||||
def test_session_create_continues_when_state_db_is_unavailable(monkeypatch):
|
||||
class _FakeWorker:
|
||||
def __init__(self, key, model):
|
||||
def __init__(self, key, model, profile_home=None):
|
||||
self.key = key
|
||||
|
||||
def close(self):
|
||||
|
|
@ -5726,7 +5726,7 @@ def test_session_create_lazy_info_reports_desktop_contract(monkeypatch):
|
|||
date" on every launch even against a current backend."""
|
||||
|
||||
class _FakeWorker:
|
||||
def __init__(self, key, model):
|
||||
def __init__(self, key, model, profile_home=None):
|
||||
self.key = key
|
||||
|
||||
def close(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue