From ed6f80a20c9360ec49401f543ec5a9434a573ae5 Mon Sep 17 00:00:00 2001 From: kshitijk4poor <82637225+kshitijk4poor@users.noreply.github.com> Date: Thu, 2 Jul 2026 12:32:28 +0530 Subject: [PATCH] test(gateway): align fake SessionStore with _record_gateway_session_peer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- tests/gateway/test_compression_failure_session_sync.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/gateway/test_compression_failure_session_sync.py b/tests/gateway/test_compression_failure_session_sync.py index 8874c016cce..d24021a0f03 100644 --- a/tests/gateway/test_compression_failure_session_sync.py +++ b/tests/gateway/test_compression_failure_session_sync.py @@ -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):