mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-14 14:12:44 +00:00
test(gateway): align fake SessionStore with _record_gateway_session_peer
The #55300 peer-recording call now fires on the failed-turn compression split path; the fake _SessionStore in test_compression_failure_session_sync (carried in with #55721's test changes) lacked that method. Add a call-tracking no-op so the combined salvage's tests pass. Co-authored-by: João Vitor Cunha <jvsantos.cunha@gmail.com>
This commit is contained in:
parent
2a04137322
commit
ed6f80a20c
1 changed files with 6 additions and 0 deletions
|
|
@ -21,10 +21,16 @@ class _SessionStore:
|
|||
)
|
||||
self._entries = {SESSION_KEY: self.entry}
|
||||
self.save_calls = 0
|
||||
self.peer_records = []
|
||||
|
||||
def _save(self):
|
||||
self.save_calls += 1
|
||||
|
||||
def _record_gateway_session_peer(self, session_id, session_key, source):
|
||||
# #55300 records the child's gateway peer metadata after a compression
|
||||
# split; the fake tracks the call so tests can assert it fired.
|
||||
self.peer_records.append((session_id, session_key, source))
|
||||
|
||||
|
||||
class _CompressionThenFailureAgent:
|
||||
def __init__(self, **kwargs):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue