Skip to content

Commit

Permalink
Declare Sum and DataPoints type in pipeline_test
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAlias committed Jul 25, 2022
1 parent 3145379 commit 1467a9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/metric/pipeline_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ import (
type testSumAggregator struct{}

func (testSumAggregator) Aggregation() metricdata.Aggregation {
return metricdata.Sum{
return metricdata.Sum[int64]{
Temporality: metricdata.CumulativeTemporality,
IsMonotonic: false,
DataPoints: []metricdata.DataPoint{}}
DataPoints: []metricdata.DataPoint[int64]{}}
}

func TestEmptyPipeline(t *testing.T) {
Expand Down

0 comments on commit 1467a9a

Please sign in to comment.