Skip to content

Commit 23c8abb

Browse files
committed
Fixed a build error in a unit test
1 parent dc13fb9 commit 23c8abb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// See the LICENSE file in the project root for more information.
44

55
using System;
6+
using System.Buffers;
67
using System.Diagnostics.CodeAnalysis;
78
using System.IO;
89
using System.Linq;
@@ -159,7 +160,7 @@ public void Test_ArrayPoolBufferWriterOfT_AsStream()
159160

160161
Assert.AreEqual(writer.WrittenCount, data.Length);
161162

162-
Stream stream = writer.AsStream();
163+
Stream stream = ((IMemoryOwner<byte>)writer).AsStream();
163164

164165
Assert.AreEqual(stream.Length, data.Length);
165166

0 commit comments

Comments
 (0)