@@ -527,7 +527,10 @@ public void SendPacketsElement_FileStreamMultiPart_Success()
527
527
}
528
528
}
529
529
530
- [ Fact ]
530
+ public static bool IsNotWindows11 = ! PlatformDetection . IsWindows10Version22000OrGreater ;
531
+
532
+ [ ActiveIssue ( "https://github.com/dotnet/runtime/issues/58898" ) ]
533
+ [ ConditionalFact ( nameof ( IsNotWindows11 ) ) ]
531
534
public void SendPacketsElement_FileStreamLargeOffset_Throws ( )
532
535
{
533
536
using ( var stream = new FileStream ( TestFileName , FileMode . Open , FileAccess . Read , FileShare . Read , 4096 , useAsync : true ) )
@@ -550,7 +553,8 @@ public void SendPacketsElement_FileStreamLargeCount_Throws()
550
553
}
551
554
}
552
555
553
- [ Fact ]
556
+ [ ActiveIssue ( "https://github.com/dotnet/runtime/issues/58898" ) ]
557
+ [ ConditionalFact ( nameof ( IsNotWindows11 ) ) ]
554
558
public void SendPacketsElement_FileStreamWithOptions_Success ( ) {
555
559
using ( var stream = new FileStream ( TestFileName , FileMode . Open , FileAccess . Read , FileShare . ReadWrite , 4096 , FileOptions . Asynchronous | FileOptions . SequentialScan ) ) {
556
560
var element = new SendPacketsElement ( stream , 0 , s_testFileSize ) ;
@@ -581,15 +585,9 @@ public void SendPacketsElement_FileStreamMultiPartMixed_Success() {
581
585
}
582
586
}
583
587
584
- [ ConditionalFact ]
588
+ [ ActiveIssue ( "https://github.com/dotnet/runtime/issues/58898" ) ]
589
+ [ ConditionalFact ( nameof ( IsNotWindows11 ) ) ]
585
590
public void SendPacketsElement_FileStreamMultiPartMixed_MultipleFileStreams_Success ( ) {
586
-
587
- if ( PlatformDetection . IsWindows10Version22000OrGreater )
588
- {
589
- // [ActiveIssue("https://github.com/dotnet/runtime/issues/58898")]
590
- throw new SkipTestException ( "Unstable on Windows 11" ) ;
591
- }
592
-
593
591
using ( var stream = new FileStream ( TestFileName , FileMode . Open , FileAccess . Read , FileShare . Read , 4096 , FileOptions . Asynchronous ) )
594
592
using ( var stream2 = new FileStream ( TestFileName , FileMode . Open , FileAccess . Read , FileShare . Read , 4096 , FileOptions . Asynchronous ) ) {
595
593
var elements = new [ ]
0 commit comments