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.
This commit is contained in:
parent
1583e988f1
commit
fa30898dee
1 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue