Skip to content

Commit

Permalink
Skip flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
JimBobSquarePants committed Jun 16, 2021
1 parent 65c67d3 commit a22b0cb
Showing 1 changed file with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,18 +95,9 @@ public unsafe void SmallBuffersArePooled_OfBigValueType()
Assert.True(this.LocalFixture.CheckIsRentingPooledBuffer<LargeStruct>(count));
}

[Fact]
[Fact(Skip = "It looks like the GC is forming an unmanaged pool which makes this test flaky.")]
public unsafe void LargeBuffersAreNotPooled_OfBigValueType()
{
if (!TestEnvironment.IsWindows)
{
// TODO: We should have an attribute for this kind of stuff.
// This test passes locally but not in the UNIX CI.
// This could be due to the GC simply returning the same buffer
// from unmanaged memory but this requires confirmation.
return;
}

int count = (MaxPooledBufferSizeInBytes / sizeof(LargeStruct)) + 1;

Assert.False(this.LocalFixture.CheckIsRentingPooledBuffer<LargeStruct>(count));
Expand Down

0 comments on commit a22b0cb

Please sign in to comment.