Skip to content

Commit

Permalink
disable AwaitingTasksShouldNotInterfereAllocationResults for InProces…
Browse files Browse the repository at this point in the history
…s toolchain as it's flaky, contributes to #1925 (#1961)
  • Loading branch information
adamsitnik authored Mar 22, 2022
1 parent d66289a commit 0868daf
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,11 @@ public class NonAllocatingAsynchronousBenchmarks
[Trait(Constants.Category, Constants.BackwardCompatibilityCategory)]
public void AwaitingTasksShouldNotInterfereAllocationResults(IToolchain toolchain)
{
if (toolchain.IsInProcess)
{
return; // it's flaky: https://github.com/dotnet/BenchmarkDotNet/issues/1925
}

AssertAllocations(toolchain, typeof(NonAllocatingAsynchronousBenchmarks), new Dictionary<string, long>
{
{ nameof(NonAllocatingAsynchronousBenchmarks.CompletedTask), 0 },
Expand Down

0 comments on commit 0868daf

Please sign in to comment.