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()}, + }, }, }, },