Skip to content

Commit 7e0d20a

Browse files
committed
Fixed bugs in two unit tests
1 parent a925554 commit 7e0d20a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

UnitTests/UnitTests.HighPerformance.Shared/Buffers/Test_ArrayPoolBufferWriter{T}.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public void Test_ArrayPoolBufferWriterOfT_AllocateFromCustomPoolAndGetMemoryAndS
6161
{
6262
var pool = new TrackingArrayPool<byte>();
6363

64-
using (var writer = new ArrayPoolBufferWriter<byte>())
64+
using (var writer = new ArrayPoolBufferWriter<byte>(pool))
6565
{
6666
Assert.AreEqual(pool.RentedArrays.Count, 1);
6767

UnitTests/UnitTests.HighPerformance.Shared/Buffers/Test_SpanOwner{T}.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public void Test_SpanOwnerOfT_AllocateFromCustomPoolAndGetMemoryAndSpan()
3535
{
3636
var pool = new TrackingArrayPool<int>();
3737

38-
using (var buffer = SpanOwner<int>.Allocate(127))
38+
using (var buffer = SpanOwner<int>.Allocate(127, pool))
3939
{
4040
Assert.AreEqual(pool.RentedArrays.Count, 1);
4141

0 commit comments

Comments
 (0)