From c496daf56c1be4ba24068b0cc59dc36f7835c27d Mon Sep 17 00:00:00 2001 From: Owen Diehl Date: Tue, 16 Apr 2024 10:22:01 -0700 Subject: [PATCH] populate golden tests with new field Signed-off-by: Owen Diehl --- pkg/querier/queryrange/codec_test.go | 3 ++- pkg/querier/queryrange/prometheus_test.go | 3 ++- pkg/util/marshal/legacy/marshal_test.go | 3 ++- pkg/util/marshal/marshal_test.go | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/pkg/querier/queryrange/codec_test.go b/pkg/querier/queryrange/codec_test.go index b334ab5b06918..273750f71364d 100644 --- a/pkg/querier/queryrange/codec_test.go +++ b/pkg/querier/queryrange/codec_test.go @@ -1691,7 +1691,8 @@ var ( }, "index": { "postFilterChunks": 0, - "totalChunks": 0 + "totalChunks": 0, + "shardsDuration": 0 }, "cache": { "chunk": { diff --git a/pkg/querier/queryrange/prometheus_test.go b/pkg/querier/queryrange/prometheus_test.go index 9d47be945b561..2888fbfdd6ace 100644 --- a/pkg/querier/queryrange/prometheus_test.go +++ b/pkg/querier/queryrange/prometheus_test.go @@ -15,7 +15,8 @@ import ( var emptyStats = `"stats": { "index": { "postFilterChunks": 0, - "totalChunks": 0 + "totalChunks": 0, + "shardsDuration": 0 }, "ingester" : { "store": { diff --git a/pkg/util/marshal/legacy/marshal_test.go b/pkg/util/marshal/legacy/marshal_test.go index b535a390479f9..90fdef6281edc 100644 --- a/pkg/util/marshal/legacy/marshal_test.go +++ b/pkg/util/marshal/legacy/marshal_test.go @@ -58,7 +58,8 @@ var queryTests = []struct { "stats" : { "index": { "postFilterChunks": 0, - "totalChunks": 0 + "totalChunks": 0, + "shardsDuration": 0 }, "ingester" : { "store": { diff --git a/pkg/util/marshal/marshal_test.go b/pkg/util/marshal/marshal_test.go index 1ccbe2158dfc5..c749677f77026 100644 --- a/pkg/util/marshal/marshal_test.go +++ b/pkg/util/marshal/marshal_test.go @@ -27,7 +27,8 @@ import ( const emptyStats = `{ "index": { "postFilterChunks": 0, - "totalChunks": 0 + "totalChunks": 0, + "shardsDuration": 0 }, "ingester" : { "store": {