Skip to content

Commit

Permalink
Use the constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
codebien committed Jul 7, 2023
1 parent 976a8ff commit 1ec8c97
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions output/cloud/expv2/sink_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package expv2

import (
"math"
"testing"

"github.com/stretchr/testify/assert"
Expand All @@ -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))
Expand Down

0 comments on commit 1ec8c97

Please sign in to comment.