Skip to content

Commit

Permalink
Fixed broken unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
niemyjski committed Jun 30, 2017
1 parent 72f82ac commit bb583d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/Exceptionless.Tests/Plugins/PluginTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@ public void RunBenchmark() {
foreach (var report in summary.Reports) {
_writer.WriteLine(report.ToString());

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

0 comments on commit bb583d8

Please sign in to comment.