From 1e6544e69139db91d5c69bd2d06f6dee2b42533f Mon Sep 17 00:00:00 2001 From: Cyril Tovena Date: Tue, 12 Jan 2021 22:33:26 +0100 Subject: [PATCH] Fixes query-tee tests. Signed-off-by: Cyril Tovena --- cmd/querytee/response_comparator.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/querytee/response_comparator.go b/cmd/querytee/response_comparator.go index 336fb1590756e..9ac529142e1f1 100644 --- a/cmd/querytee/response_comparator.go +++ b/cmd/querytee/response_comparator.go @@ -6,6 +6,7 @@ import ( "github.com/cortexproject/cortex/pkg/util" "github.com/go-kit/kit/log/level" + jsoniter "github.com/json-iterator/go" "github.com/grafana/loki/pkg/loghttp" ) @@ -13,11 +14,11 @@ import ( func compareStreams(expectedRaw, actualRaw json.RawMessage, tolerance float64) error { var expected, actual loghttp.Streams - err := json.Unmarshal(expectedRaw, &expected) + err := jsoniter.Unmarshal(expectedRaw, &expected) if err != nil { return err } - err = json.Unmarshal(actualRaw, &actual) + err = jsoniter.Unmarshal(actualRaw, &actual) if err != nil { return err }