From 72e4297c7a00fad6a0bff941ce667e56e02d106c Mon Sep 17 00:00:00 2001 From: Xubin Ren <52506698+Re-bin@users.noreply.github.com> Date: Thu, 5 Nov 2026 10:11:23 +0800 Subject: [PATCH] test(channels): keep retry checks independent of scheduling speed --- tests/channels/test_channel_plugins.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/channels/test_channel_plugins.py b/tests/channels/test_channel_plugins.py index dea2b54ff..3e321b6d5 100644 --- a/tests/channels/test_channel_plugins.py +++ b/tests/channels/test_channel_plugins.py @@ -3755,7 +3755,9 @@ async def test_restart_notice_retries_until_running_channel_accepts_delivery(): notice = RestartNotice(channel="discord", chat_id="123", started_at_raw="") with patch("nanobot.channels.manager._SEND_RETRY_DELAYS", (0,)): - await mgr._send_restart_notice_when_started(notice, timeout_s=0.1, poll_s=0.01) + # Test delivery retries, not a 100 ms scheduling deadline under CI load. + async with asyncio.timeout(3): + await mgr._send_restart_notice_when_started(notice) assert channel.attempts == 2 assert channel.sent is not None