diff --git a/output/cloud/expv2/sink_test.go b/output/cloud/expv2/sink_test.go index 5257e1ffb8f..5d0fa243ee6 100644 --- a/output/cloud/expv2/sink_test.go +++ b/output/cloud/expv2/sink_test.go @@ -1,7 +1,6 @@ package expv2 import ( - "math" "testing" "github.com/stretchr/testify/assert" @@ -17,14 +16,7 @@ func TestNewSink(t *testing.T) { {metrics.Counter, &counter{}}, {metrics.Gauge, &gauge{}}, {metrics.Rate, &rate{}}, - { - metrics.Trend, - &histogram{ - Buckets: map[uint32]uint32{}, - Max: -math.MaxFloat64, - Min: math.MaxFloat64, - }, - }, + {metrics.Trend, newHistogram()}, } for _, tc := range tests { assert.Equal(t, tc.exp, newMetricValue(tc.mt))