style: gofmt + fix copylocks lint warning

This commit is contained in:
2026-02-21 15:36:46 -05:00
parent e2176331c8
commit 99a19286aa
2 changed files with 7 additions and 7 deletions

View File

@@ -169,13 +169,13 @@ func TestChatPipeline_LLMTimeout(t *testing.T) {
func TestChatPipeline_TypedDecoding(t *testing.T) {
// Verify typed struct decoding from proto (same path as OnTypedMessage).
original := &messages.ChatRequest{
RequestId: "req-e2e-001",
UserId: "user-1",
Message: "hello",
Premium: true,
EnableRag: false,
RequestId: "req-e2e-001",
UserId: "user-1",
Message: "hello",
Premium: true,
EnableRag: false,
EnableStreaming: false,
SystemPrompt: "Be brief.",
SystemPrompt: "Be brief.",
}
data, _ := proto.Marshal(original)

View File

@@ -55,7 +55,7 @@ func TestChatResponseRoundtrip(t *testing.T) {
t.Fatal(err)
}
if decoded.UserId != "user-1" || !decoded.Success {
t.Errorf("decoded = %+v", decoded)
t.Errorf("decoded: UserId=%s, Success=%v", decoded.UserId, decoded.Success)
}
if len(decoded.Audio) != 3 {
t.Errorf("audio len = %d", len(decoded.Audio))