Skip to content
This repository was archived by the owner on Apr 15, 2026. It is now read-only.

Commit 24279b0

Browse files
committed
Fix go test expected output
1 parent d4930ba commit 24279b0

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

internal/tests/coder_test.go

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -200,14 +200,12 @@ func TestPredictionCustomDataclassOutputCoder(t *testing.T) {
200200
require.NoError(t, err)
201201

202202
// Create expected output using JSON round-trip to match server serialization
203-
expectedItems := []map[string]any{
204-
{"x": 3, "y": "a"},
205-
{"x": 2, "y": "a"},
206-
{"x": 1, "y": "a"},
203+
expectedItem := map[string]any{
204+
"x": 3, "y": "a",
207205
}
208-
expectedJSON, err := json.Marshal(expectedItems)
206+
expectedJSON, err := json.Marshal(expectedItem)
209207
require.NoError(t, err)
210-
var expectedOutput []any
208+
var expectedOutput any
211209
err = json.Unmarshal(expectedJSON, &expectedOutput)
212210
require.NoError(t, err)
213211
assert.Equal(t, expectedOutput, predictionResponse.Output)

0 commit comments

Comments
 (0)