Skip to content

The agent that grows with you

test: initialize replay fixture with explicit runtime admission state

Teknium014b3ea49629
diff --git a/tests/gateway/test_authority_events.py b/tests/gateway/test_authority_events.py
index 160c62260b3..eade595fade 100644
--- a/tests/gateway/test_authority_events.py
+++ b/tests/gateway/test_authority_events.py
@@ -46,7 +46,8 @@ async def test_replay_matches_subscription_watermark_or_requires_snapshot(tmp_pa
db = SessionDB(tmp_path / 'replay.db')
async def answer(event):
return event.text
- runner = SimpleNamespace(_session_db=db, _handle_message=answer, _adapter_for_source=lambda source: None)
+ runner = SimpleNamespace(_session_db=db, _draining=False,
+ _handle_message=answer, _adapter_for_source=lambda source: None)
authority = await initialize_session_authority(runner, profile_id='replay', instance_id='owner')
ref = SessionRef('replay', 'shared')
source = SessionSource(platform=Platform.TELEGRAM, chat_id='replay')