test(gateway): update restart-notification metadata assertions for interim marker

The home-channel/thread assertions in
test_restart_home_channel_notification_not_deduped_across_threads
expected raw thread metadata and None; shutdown sends now carry
_interim_send per #98432. Align both assertions.

(cherry picked from commit c4ec949ae77ae5611684061a4afb8d96af335e26)
This commit is contained in:
liuhao1024
2026-08-30 16:43:14 +08:00
committed by kshitij
parent 93be421d48
commit 877d10fe77

View File

@@ -964,8 +964,8 @@ async def test_restart_home_channel_notification_not_deduped_across_threads():
await runner._notify_active_sessions_of_shutdown()
assert len(adapter.sent) == 2
assert adapter.sent_calls[0][2] == {"thread_id": "topic-7"}
assert adapter.sent_calls[1][2] is None
assert adapter.sent_calls[0][2] == {"thread_id": "topic-7", "_interim_send": True}
assert adapter.sent_calls[1][2] == {"_interim_send": True}
# ---------------------------------------------------------------------------