Skip to content

Commit

Permalink
Get rid of warning (#1760)
Browse files Browse the repository at this point in the history
The trailing space was triggering

    tests\BenchmarkDotNet.IntegrationTests\ThreadingDiagnoserTests.cs(159,140): warning SA1028: Code should not contain trailing whitespace
  • Loading branch information
radekdoulik authored Jul 30, 2021
1 parent 1a94d4d commit 37ec19f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ private void AssertStats(Summary summary, Dictionary<string, (string metricName,
var metric = selectedReport.Metrics.Single(m => m.Key == assertion.Value.metricName);

// precision is set to 2 because CoreCLR might schedule some work item on it's own and hence affect the results..
// precision = 3 is not enough (e.g., sometimes the actual value may be equal 1.0009765625 while the expected value is 1.0)
// precision = 3 is not enough (e.g., sometimes the actual value may be equal 1.0009765625 while the expected value is 1.0)
Assert.Equal(assertion.Value.expectedValue, metric.Value.Value, precision: 2);
}
}
Expand Down

0 comments on commit 37ec19f

Please sign in to comment.