Commit cbb4d854 authored by erio's avatar erio
Browse files

fix: check type assertion in test to satisfy errcheck linter

parent 35598d56
......@@ -155,7 +155,8 @@ func TestParseGatewayRequest_AnthropicIgnoresGeminiFields(t *testing.T) {
require.True(t, parsed.HasSystem)
require.Equal(t, "real system", parsed.System)
require.Len(t, parsed.Messages, 1)
msg := parsed.Messages[0].(map[string]any)
msg, ok := parsed.Messages[0].(map[string]any)
require.True(t, ok)
require.Equal(t, "real content", msg["content"])
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment