From da53917d514d495fe9d2019e862f930b973f13df Mon Sep 17 00:00:00 2001 From: Max Date: Sat, 15 Nov 2025 15:36:31 +0800 Subject: [PATCH] Fix formatting issues in OpenAI stream lifecycle event tests - Removed unnecessary blank lines in the TestOpenAIStreamLifecycleEvents function to improve code readability. - Adjusted log formatting for group_end event to ensure consistent output during test execution. --- agent/llm/providers/openai/openai_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agent/llm/providers/openai/openai_test.go b/agent/llm/providers/openai/openai_test.go index a3ac56cf..16b148aa 100644 --- a/agent/llm/providers/openai/openai_test.go +++ b/agent/llm/providers/openai/openai_test.go @@ -1288,7 +1288,7 @@ func TestOpenAIStreamLifecycleEvents(t *testing.T) { handler := func(chunkType context.StreamChunkType, data []byte) int { events = append(events, string(chunkType)) - + switch chunkType { case context.ChunkStreamStart: streamStartReceived = true @@ -1333,7 +1333,7 @@ func TestOpenAIStreamLifecycleEvents(t *testing.T) { groupEndReceived = true var endData context.GroupEndData if err := json.Unmarshal(data, &endData); err == nil { - t.Logf("✓ group_end: type=%s, chunks=%d, duration=%dms", + t.Logf("✓ group_end: type=%s, chunks=%d, duration=%dms", endData.Type, endData.ChunkCount, endData.DurationMs) if endData.ChunkCount <= 0 { t.Error("group_end should have chunk_count > 0")