From 4b453409737d9b1343e108d37751a591060e1c97 Mon Sep 17 00:00:00 2001 From: SungJin1212 Date: Thu, 7 Nov 2024 17:06:11 +0900 Subject: [PATCH] fix test Signed-off-by: SungJin1212 --- pkg/util/push/push_test.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkg/util/push/push_test.go b/pkg/util/push/push_test.go index c31a769433f..178f2346c91 100644 --- a/pkg/util/push/push_test.go +++ b/pkg/util/push/push_test.go @@ -259,11 +259,13 @@ func createCortexRemoteWriteV2Protobuf(t *testing.T, skipLabelNameValidation boo t.Helper() input := cortexpbv2.WriteRequest{ Symbols: []string{"", "__name__", "foo"}, - Timeseries: []cortexpbv2.TimeSeries{ + Timeseries: []cortexpbv2.PreallocTimeseriesV2{ { - LabelsRefs: []uint32{1, 2}, - Samples: []cortexpbv2.Sample{ - {Value: 1, Timestamp: time.Date(2020, 4, 1, 0, 0, 0, 0, time.UTC).UnixNano()}, + TimeSeries: &cortexpbv2.TimeSeries{ + LabelsRefs: []uint32{1, 2}, + Samples: []cortexpbv2.Sample{ + {Value: 1, Timestamp: time.Date(2020, 4, 1, 0, 0, 0, 0, time.UTC).UnixNano()}, + }, }, }, },