diff options
Diffstat (limited to 'src/libraries/System.IO.FileSystem/tests/RandomAccess/Base.cs')
-rw-r--r-- | src/libraries/System.IO.FileSystem/tests/RandomAccess/Base.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libraries/System.IO.FileSystem/tests/RandomAccess/Base.cs b/src/libraries/System.IO.FileSystem/tests/RandomAccess/Base.cs index 8d876f30174..45d0547a391 100644 --- a/src/libraries/System.IO.FileSystem/tests/RandomAccess/Base.cs +++ b/src/libraries/System.IO.FileSystem/tests/RandomAccess/Base.cs @@ -46,7 +46,7 @@ namespace System.IO.Tests public void ThrowsNotSupportedExceptionForUnseekableFile() { using (var server = new AnonymousPipeServerStream(PipeDirection.Out)) - using (SafeFileHandle handle = new SafeFileHandle(server.SafePipeHandle.DangerousGetHandle(), true)) + using (SafeFileHandle handle = new SafeFileHandle(server.SafePipeHandle.DangerousGetHandle(), ownsHandle: false)) { Assert.Throws<NotSupportedException>(() => MethodUnderTest(handle, Array.Empty<byte>(), 0)); } |