@@ -16,14 +16,11 @@ public abstract class AggregatorTestsBase
1616 private static readonly ExplicitBucketHistogramConfiguration HistogramConfiguration = new ( ) { Boundaries = Metric . DefaultHistogramBounds } ;
1717 private static readonly MetricStreamIdentity MetricStreamIdentity = new ( Instrument , HistogramConfiguration ) ;
1818
19- private readonly bool shouldReclaimUnusedMetricPoints ;
2019 private readonly AggregatorStore aggregatorStore ;
2120
22- protected AggregatorTestsBase ( bool shouldReclaimUnusedMetricPoints )
21+ protected AggregatorTestsBase ( )
2322 {
24- this . shouldReclaimUnusedMetricPoints = shouldReclaimUnusedMetricPoints ;
25-
26- this . aggregatorStore = new ( MetricStreamIdentity , AggregationType . HistogramWithBuckets , AggregationTemporality . Cumulative , 1024 , this . shouldReclaimUnusedMetricPoints ) ;
23+ this . aggregatorStore = new ( MetricStreamIdentity , AggregationType . HistogramWithBuckets , AggregationTemporality . Cumulative , 1024 ) ;
2724 }
2825
2926 [ Fact ]
@@ -250,8 +247,7 @@ public void HistogramBucketsDefaultUpdatesForSecondsTest(string meterName, strin
250247 metricStreamIdentity ,
251248 AggregationType . Histogram ,
252249 AggregationTemporality . Cumulative ,
253- cardinalityLimit : 1024 ,
254- this . shouldReclaimUnusedMetricPoints ) ;
250+ cardinalityLimit : 1024 ) ;
255251
256252 KnownHistogramBuckets actualHistogramBounds = KnownHistogramBuckets . Default ;
257253 if ( aggregatorStore . HistogramBounds == Metric . DefaultHistogramBoundsShortSeconds )
@@ -327,7 +323,6 @@ internal void ExponentialHistogramTests(AggregationType aggregationType, Aggrega
327323 aggregationType ,
328324 aggregationTemporality ,
329325 cardinalityLimit : 1024 ,
330- this . shouldReclaimUnusedMetricPoints ,
331326 exemplarsEnabled ? ExemplarFilterType . AlwaysOn : null ) ;
332327
333328 var expectedHistogram = new Base2ExponentialBucketHistogram ( ) ;
@@ -435,8 +430,7 @@ internal void ExponentialMaxScaleConfigWorks(int? maxScale)
435430 metricStreamIdentity ,
436431 AggregationType . Base2ExponentialHistogram ,
437432 AggregationTemporality . Cumulative ,
438- cardinalityLimit : 1024 ,
439- this . shouldReclaimUnusedMetricPoints ) ;
433+ cardinalityLimit : 1024 ) ;
440434
441435 aggregatorStore . Update ( 10 , Array . Empty < KeyValuePair < string , object ? > > ( ) ) ;
442436
@@ -520,15 +514,7 @@ public ThreadArguments(MetricPoint histogramPoint, ManualResetEvent mreToEnsureA
520514public class AggregatorTests : AggregatorTestsBase
521515{
522516 public AggregatorTests ( )
523- : base ( shouldReclaimUnusedMetricPoints : false )
524- {
525- }
526- }
527-
528- public class AggregatorTestsWithReclaimAttribute : AggregatorTestsBase
529- {
530- public AggregatorTestsWithReclaimAttribute ( )
531- : base ( shouldReclaimUnusedMetricPoints : true )
517+ : base ( )
532518 {
533519 }
534520}
0 commit comments