Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
using System.Net.Test.Common;
using System.Threading;

using Microsoft.DotNet.XUnitExtensions;

using Xunit;
using Xunit.Abstractions;

Expand Down Expand Up @@ -525,7 +527,10 @@ public void SendPacketsElement_FileStreamMultiPart_Success()
}
}

[Fact]
public static bool IsNotWindows11 = !PlatformDetection.IsWindows10Version22000OrGreater;

[ActiveIssue("https://github.com/dotnet/runtime/issues/58898")]
[ConditionalFact(nameof(IsNotWindows11))]
public void SendPacketsElement_FileStreamLargeOffset_Throws()
{
using (var stream = new FileStream(TestFileName, FileMode.Open, FileAccess.Read, FileShare.Read, 4096, useAsync: true))
Expand All @@ -548,7 +553,8 @@ public void SendPacketsElement_FileStreamLargeCount_Throws()
}
}

[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/58898")]
[ConditionalFact(nameof(IsNotWindows11))]
public void SendPacketsElement_FileStreamWithOptions_Success() {
using (var stream = new FileStream(TestFileName, FileMode.Open, FileAccess.Read, FileShare.ReadWrite, 4096, FileOptions.Asynchronous | FileOptions.SequentialScan)) {
var element = new SendPacketsElement(stream, 0, s_testFileSize);
Expand Down Expand Up @@ -579,7 +585,8 @@ public void SendPacketsElement_FileStreamMultiPartMixed_Success() {
}
}

[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/58898")]
[ConditionalFact(nameof(IsNotWindows11))]
public void SendPacketsElement_FileStreamMultiPartMixed_MultipleFileStreams_Success() {
using (var stream = new FileStream(TestFileName, FileMode.Open, FileAccess.Read, FileShare.Read, 4096, FileOptions.Asynchronous))
using (var stream2 = new FileStream(TestFileName, FileMode.Open, FileAccess.Read, FileShare.Read, 4096, FileOptions.Asynchronous)) {
Expand Down