Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
gediminasgu committed Dec 2, 2020
1 parent d7b695f commit 3678ba6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/aggregator/aggregator/elem_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,10 @@ func TestCounterResetSetData(t *testing.T) {

func TestCounterResetSetDataInvalidAggregationType(t *testing.T) {
opts := NewOptions()
ce := MustNewCounterElem(nil, policy.EmptyStoragePolicy, maggregation.DefaultTypes, applied.DefaultPipeline, testNumForwardedTimes, NoPrefixNoSuffix, opts)
err := ce.ResetSetData(testCounterID, testStoragePolicy, maggregation.Types{maggregation.P10}, applied.DefaultPipeline, 0, NoPrefixNoSuffix)
ce := MustNewCounterElem(nil, policy.EmptyStoragePolicy, maggregation.DefaultTypes, applied.DefaultPipeline,
testNumForwardedTimes, NoPrefixNoSuffix, opts)
err := ce.ResetSetData(testCounterID, testStoragePolicy, maggregation.Types{maggregation.P10},
applied.DefaultPipeline, 0, NoPrefixNoSuffix)
require.Error(t, err)
}

Expand Down

0 comments on commit 3678ba6

Please sign in to comment.