Skip to content

Commit

Permalink
update test case
Browse files Browse the repository at this point in the history
  • Loading branch information
reyang committed Oct 18, 2021
1 parent d71e114 commit 4d560cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/OpenTelemetry.Tests/Metrics/MetricViewTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,8 @@ public void ViewToDropAndRetainInstrument()
[Fact]
public void MetricStreamConfigurationForDropMustNotAllowOverriding()
{
Assert.Throws<ArgumentException>(() => MetricStreamConfiguration.Drop.Aggregation = Aggregation.Histogram);
MetricStreamConfiguration.Drop.Aggregation = Aggregation.Histogram;
Assert.Equal(Aggregation.Drop, MetricStreamConfiguration.Drop.Aggregation);
}
}
#pragma warning restore SA1000 // KeywordsMustBeSpacedCorrectly
Expand Down

0 comments on commit 4d560cf

Please sign in to comment.