From fa30898dee9b65da9464e55dea0b9893964a7f07 Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 1 May 2026 15:37:17 +0800 Subject: [PATCH] fix(tests): reduce timeout in TestProcessCall_Timeout_Short to 1 second - Updated the timeout parameter in the TestProcessCall_Timeout_Short test to 1 second to ensure it accurately reflects expected behavior during LLM round-trip execution. - This change aims to improve the reliability of the test by aligning the timeout with realistic processing times. --- agent/caller/process_e2e_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agent/caller/process_e2e_test.go b/agent/caller/process_e2e_test.go index 27c10c6e..bf120ec2 100644 --- a/agent/caller/process_e2e_test.go +++ b/agent/caller/process_e2e_test.go @@ -273,14 +273,14 @@ func TestProcessCall_Timeout_Short(t *testing.T) { testutils.Prepare(t) defer testutils.Clean(t) - // Set timeout=2 seconds — LLM round-trip will certainly exceed this. + // Set timeout=1 second — LLM round-trip will certainly exceed this. // Verifies that the timeout parameter is respected and produces an error. proc := newLLMProcess(t, "agent.call", map[string]interface{}{ "assistant_id": "tests.simple-greeting", "messages": []interface{}{ map[string]interface{}{"role": "user", "content": "Tell me a very long story about the history of computing."}, }, - "timeout": 2, + "timeout": 1, }) err := proc.Execute()