Skip to content

Commit a22b0cb

Browse files
Skip flaky test
1 parent 65c67d3 commit a22b0cb

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

tests/ImageSharp.Tests/Memory/Allocators/ArrayPoolMemoryAllocatorTests.cs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -95,18 +95,9 @@ public unsafe void SmallBuffersArePooled_OfBigValueType()
9595
Assert.True(this.LocalFixture.CheckIsRentingPooledBuffer<LargeStruct>(count));
9696
}
9797

98-
[Fact]
98+
[Fact(Skip = "It looks like the GC is forming an unmanaged pool which makes this test flaky.")]
9999
public unsafe void LargeBuffersAreNotPooled_OfBigValueType()
100100
{
101-
if (!TestEnvironment.IsWindows)
102-
{
103-
// TODO: We should have an attribute for this kind of stuff.
104-
// This test passes locally but not in the UNIX CI.
105-
// This could be due to the GC simply returning the same buffer
106-
// from unmanaged memory but this requires confirmation.
107-
return;
108-
}
109-
110101
int count = (MaxPooledBufferSizeInBytes / sizeof(LargeStruct)) + 1;
111102

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

0 commit comments

Comments
 (0)