From 9daaab152ff1c0794ee21645bf57acf444f900ff Mon Sep 17 00:00:00 2001 From: Anton Firszov Date: Sat, 15 Jan 2022 03:15:26 +0100 Subject: [PATCH] serialize SendPacketsAsync tests (#63702) --- .../tests/FunctionalTests/SendPacketsAsync.cs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/libraries/System.Net.Sockets/tests/FunctionalTests/SendPacketsAsync.cs b/src/libraries/System.Net.Sockets/tests/FunctionalTests/SendPacketsAsync.cs index 7c69f20f1446f..79d05dc28bde5 100644 --- a/src/libraries/System.Net.Sockets/tests/FunctionalTests/SendPacketsAsync.cs +++ b/src/libraries/System.Net.Sockets/tests/FunctionalTests/SendPacketsAsync.cs @@ -13,6 +13,7 @@ namespace System.Net.Sockets.Tests { + [Collection(nameof(DisableParallelization))] public class SendPacketsAsync : IDisposable { private readonly ITestOutputHelper _log; @@ -518,10 +519,7 @@ public void SendPacketsElement_FileStreamMultiPart_Success() } } - public static bool IsNotWindows11 = !PlatformDetection.IsWindows10Version22000OrGreater; - - [ActiveIssue("https://github.com/dotnet/runtime/issues/58898")] - [ConditionalFact(nameof(IsNotWindows11))] + [Fact] public void SendPacketsElement_FileStreamLargeOffset_Throws() { using (var stream = new FileStream(TestFileName, FileMode.Open, FileAccess.Read, FileShare.Read, 4096, useAsync: true)) @@ -544,8 +542,7 @@ public void SendPacketsElement_FileStreamLargeCount_Throws() } } - [ActiveIssue("https://github.com/dotnet/runtime/issues/58898")] - [ConditionalFact(nameof(IsNotWindows11))] + [Fact] 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); @@ -576,8 +573,7 @@ public void SendPacketsElement_FileStreamMultiPartMixed_Success() { } } - [ActiveIssue("https://github.com/dotnet/runtime/issues/58898")] - [ConditionalFact(nameof(IsNotWindows11))] + [Fact] 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)) {