diff --git a/src/aggregator/aggregator/elem_test.go b/src/aggregator/aggregator/elem_test.go index a2098a09f1..a87130d10c 100644 --- a/src/aggregator/aggregator/elem_test.go +++ b/src/aggregator/aggregator/elem_test.go @@ -158,8 +158,8 @@ func TestCounterResetSetData(t *testing.T) { func TestCounterResetSetDataInvalidAggregationType(t *testing.T) { opts := NewOptions() - ce := MustNewCounterElem(nil, policy.EmptyStoragePolicy, maggregation.DefaultTypes, applied.DefaultPipeline, - testNumForwardedTimes, NoPrefixNoSuffix, opts) + 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)