Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: SungJin1212 <[email protected]>
  • Loading branch information
SungJin1212 committed Nov 7, 2024
1 parent 80124e3 commit 4b45340
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pkg/util/push/push_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()},
},
},
},
},
Expand Down

0 comments on commit 4b45340

Please sign in to comment.