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:
kshitijk4poor 2026-07-02 12:32:28 +05:30 committed by kshitij
parent 2a04137322
commit ed6f80a20c

View file

@ -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):