From 0eac82984c336304eee5d3caae3ff422b1f82455 Mon Sep 17 00:00:00 2001 From: Xubin Ren <52506698+Re-bin@users.noreply.github.com> Date: Thu, 30 Jul 2026 19:38:41 +0800 Subject: [PATCH] test(mcp): stabilize idle reconnect timing --- tests/agent/test_mcp_reconnect_crash.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/agent/test_mcp_reconnect_crash.py b/tests/agent/test_mcp_reconnect_crash.py index 9e2eb59da..5ca387cfb 100644 --- a/tests/agent/test_mcp_reconnect_crash.py +++ b/tests/agent/test_mcp_reconnect_crash.py @@ -27,8 +27,10 @@ from nanobot.bus.queue import MessageBus from nanobot.config.schema import MCPServerConfig from nanobot.security import network as security_network -_IDLE_TIMEOUT_SECONDS = 0.25 -_IDLE_EXPIRY_GRACE_SECONDS = 0.25 +# Leave enough headroom for reconnect handshakes on slower CI hosts; each test +# still waits beyond this deadline explicitly before exercising recovery. +_IDLE_TIMEOUT_SECONDS = 1.0 +_IDLE_EXPIRY_GRACE_SECONDS = 0.5 _TOOL_TIMEOUT_SECONDS = 10