style: gofmt + fix copylocks lint warning
This commit is contained in:
12
e2e_test.go
12
e2e_test.go
@@ -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)
|
||||
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user