From bb583d88c36aceec4c12363eb49efd627d4f3030 Mon Sep 17 00:00:00 2001 From: Blake Niemyjski Date: Fri, 30 Jun 2017 11:04:50 -0500 Subject: [PATCH] Fixed broken unit test --- test/Exceptionless.Tests/Plugins/PluginTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Exceptionless.Tests/Plugins/PluginTests.cs b/test/Exceptionless.Tests/Plugins/PluginTests.cs index e00b648c..753ee733 100644 --- a/test/Exceptionless.Tests/Plugins/PluginTests.cs +++ b/test/Exceptionless.Tests/Plugins/PluginTests.cs @@ -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)); } }