Skip to content

Commit af43984

Browse files
committed
Run ArrayPoolMemoryAllocatorTests serial
1 parent 4439c38 commit af43984

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

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

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespace SixLabors.ImageSharp.Tests.Memory.Allocators
1313
{
14+
[Collection("RunSerial")]
1415
public class ArrayPoolMemoryAllocatorTests
1516
{
1617
private const int MaxPooledBufferSizeInBytes = 2048;
@@ -56,19 +57,14 @@ public void WhenPassedOnly_MaxPooledBufferSizeInBytes_SmallerThresholdValueIsAut
5657

5758
[Fact]
5859
public void When_PoolSelectorThresholdInBytes_IsGreaterThan_MaxPooledBufferSizeInBytes_ExceptionIsThrown()
59-
{
60-
Assert.ThrowsAny<Exception>(() => new ArrayPoolMemoryAllocator(100, 200));
61-
}
60+
=> Assert.ThrowsAny<Exception>(() => new ArrayPoolMemoryAllocator(100, 200));
6261
}
6362

6463
[Theory]
6564
[InlineData(32)]
6665
[InlineData(512)]
6766
[InlineData(MaxPooledBufferSizeInBytes - 1)]
68-
public void SmallBuffersArePooled_OfByte(int size)
69-
{
70-
Assert.True(this.LocalFixture.CheckIsRentingPooledBuffer<byte>(size));
71-
}
67+
public void SmallBuffersArePooled_OfByte(int size) => Assert.True(this.LocalFixture.CheckIsRentingPooledBuffer<byte>(size));
7268

7369
[Theory]
7470
[InlineData(128 * 1024 * 1024)]

0 commit comments

Comments
 (0)