Skip to content

Commit 4b45340

Browse files
committed
fix test
Signed-off-by: SungJin1212 <tjdwls1201@gmail.com>
1 parent 80124e3 commit 4b45340

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

pkg/util/push/push_test.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,11 +259,13 @@ func createCortexRemoteWriteV2Protobuf(t *testing.T, skipLabelNameValidation boo
259259
t.Helper()
260260
input := cortexpbv2.WriteRequest{
261261
Symbols: []string{"", "__name__", "foo"},
262-
Timeseries: []cortexpbv2.TimeSeries{
262+
Timeseries: []cortexpbv2.PreallocTimeseriesV2{
263263
{
264-
LabelsRefs: []uint32{1, 2},
265-
Samples: []cortexpbv2.Sample{
266-
{Value: 1, Timestamp: time.Date(2020, 4, 1, 0, 0, 0, 0, time.UTC).UnixNano()},
264+
TimeSeries: &cortexpbv2.TimeSeries{
265+
LabelsRefs: []uint32{1, 2},
266+
Samples: []cortexpbv2.Sample{
267+
{Value: 1, Timestamp: time.Date(2020, 4, 1, 0, 0, 0, 0, time.UTC).UnixNano()},
268+
},
267269
},
268270
},
269271
},

0 commit comments

Comments
 (0)