Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
test(channels): keep retry checks independent of scheduling speed
Xubin Ren72e4297c7a00
diff --git a/tests/channels/test_channel_plugins.py b/tests/channels/test_channel_plugins.pyindex 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 == 2assert channel.sent is not None