Skip to content

Commit

Permalink
chore: double gauge use float value in test
Browse files Browse the repository at this point in the history
Signed-off-by: Juraj Michalek <juraj.michalek132@gmail.com>
  • Loading branch information
jmichalek132 committed Oct 9, 2024
1 parent 0133574 commit fbdb001
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func TestPrometheusConverterV2_addGaugeNumberDataPoints(t *testing.T) {
return getDoubleGaugeMetric(
"test",
pcommon.NewMap(),
1, ts,
1.5, ts,
)
},
want: func() map[uint64]*writev2.TimeSeries {
Expand All @@ -71,7 +71,7 @@ func TestPrometheusConverterV2_addGaugeNumberDataPoints(t *testing.T) {
labels.Hash(): {
LabelsRefs: []uint32{1, 2},
Samples: []writev2.Sample{
{Timestamp: convertTimeStamp(pcommon.Timestamp(ts)), Value: 1},
{Timestamp: convertTimeStamp(pcommon.Timestamp(ts)), Value: 1.5},
},
},
}
Expand Down

0 comments on commit fbdb001

Please sign in to comment.