From 4d560cfa7fab431c8bbdcd5d0f229016f93a0c15 Mon Sep 17 00:00:00 2001 From: Reiley Yang Date: Sun, 17 Oct 2021 18:54:55 -0700 Subject: [PATCH] update test case --- test/OpenTelemetry.Tests/Metrics/MetricViewTests.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/OpenTelemetry.Tests/Metrics/MetricViewTests.cs b/test/OpenTelemetry.Tests/Metrics/MetricViewTests.cs index 7a825252513..c426e84b6c9 100644 --- a/test/OpenTelemetry.Tests/Metrics/MetricViewTests.cs +++ b/test/OpenTelemetry.Tests/Metrics/MetricViewTests.cs @@ -370,7 +370,8 @@ public void ViewToDropAndRetainInstrument() [Fact] public void MetricStreamConfigurationForDropMustNotAllowOverriding() { - Assert.Throws(() => MetricStreamConfiguration.Drop.Aggregation = Aggregation.Histogram); + MetricStreamConfiguration.Drop.Aggregation = Aggregation.Histogram; + Assert.Equal(Aggregation.Drop, MetricStreamConfiguration.Drop.Aggregation); } } #pragma warning restore SA1000 // KeywordsMustBeSpacedCorrectly