Skip to content

Commit bb583d8

Browse files
committed
Fixed broken unit test
1 parent 72f82ac commit bb583d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/Exceptionless.Tests/Plugins/PluginTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ public void RunBenchmark() {
887887
foreach (var report in summary.Reports) {
888888
_writer.WriteLine(report.ToString());
889889

890-
var benchmarkMedianMilliseconds = report.ResultStatistics.Median / 1000000;
890+
var benchmarkMedianMilliseconds = report.ResultStatistics != null ? report.ResultStatistics.Median / 1000000 : 0;
891891
_writer.WriteLine(String.Format("{0} - {1:0.00}ms", report.Benchmark.DisplayInfo, benchmarkMedianMilliseconds));
892892
}
893893
}

0 commit comments

Comments
 (0)