Skip to content

Commit

Permalink
test: Fix marshaler test to consume pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
adilansari committed Aug 10, 2022
1 parent 88877ef commit 7735178
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/server/v1/marshaler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ func TestJSONEncoding(t *testing.T) {
})

t.Run("marshal SearchResponse", func(t *testing.T) {
avg := float64(40)
resp := &SearchResponse{
Hits: []*SearchHit{{
Data: nil,
Expand All @@ -60,7 +61,7 @@ func TestJSONEncoding(t *testing.T) {
}},
Stats: &FacetStats{
Count: 50,
Avg: 40,
Avg: &avg,
},
},
},
Expand Down

0 comments on commit 7735178

Please sign in to comment.