From d7b3abe589923ad1029c1e8994b5812bc51d3cb3 Mon Sep 17 00:00:00 2001 From: chengyongru <2755839590@qq.com> Date: Wed, 19 Aug 2026 01:25:55 +0800 Subject: [PATCH] test(exec): wait deterministically for truncation output --- tests/tools/test_exec_session_tools.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/tools/test_exec_session_tools.py b/tests/tools/test_exec_session_tools.py index 9b3c1c572..ed148e885 100644 --- a/tests/tools/test_exec_session_tools.py +++ b/tests/tools/test_exec_session_tools.py @@ -420,7 +420,8 @@ def test_write_stdin_accepts_max_output_tokens_alias(tmp_path): sid = _session_id(initial) poll = await stdin_tool.execute( session_id=sid, - yield_time_ms=500, + wait_for="\n", + wait_timeout_ms=10000, max_output_tokens=1000, ) cleanup = await stdin_tool.execute(session_id=sid, terminate=True, yield_time_ms=0)