From 7735178fcb633745fec3c575bccd514d102b914a Mon Sep 17 00:00:00 2001 From: Adil Ansari Date: Tue, 9 Aug 2022 16:06:23 -0700 Subject: [PATCH] test: Fix marshaler test to consume pointer --- api/server/v1/marshaler_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/server/v1/marshaler_test.go b/api/server/v1/marshaler_test.go index af551842f..ce66ee3a5 100644 --- a/api/server/v1/marshaler_test.go +++ b/api/server/v1/marshaler_test.go @@ -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, @@ -60,7 +61,7 @@ func TestJSONEncoding(t *testing.T) { }}, Stats: &FacetStats{ Count: 50, - Avg: 40, + Avg: &avg, }, }, },