From 6109f8d127c7dbfe2a6bd03d9ef9c9e974160ead Mon Sep 17 00:00:00 2001 From: Stephen Toub Date: Thu, 3 Feb 2022 13:15:41 -0500 Subject: [PATCH 1/2] Fix outerloop AcceptAsync_WithTooSmallReceiveBuffer_Failure test --- .../tests/FunctionalTests/SocketAsyncEventArgsTest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libraries/System.Net.Sockets/tests/FunctionalTests/SocketAsyncEventArgsTest.cs b/src/libraries/System.Net.Sockets/tests/FunctionalTests/SocketAsyncEventArgsTest.cs index 2c0ec09e6a6cf..ee11049a1a61f 100644 --- a/src/libraries/System.Net.Sockets/tests/FunctionalTests/SocketAsyncEventArgsTest.cs +++ b/src/libraries/System.Net.Sockets/tests/FunctionalTests/SocketAsyncEventArgsTest.cs @@ -604,7 +604,7 @@ public void AcceptAsync_WithTooSmallReceiveBuffer_Failure() byte[] buffer = new byte[1]; acceptArgs.SetBuffer(buffer, 0, buffer.Length); - AssertExtensions.Throws(null, () => server.AcceptAsync(acceptArgs)); + AssertExtensions.Throws("Count", () => server.AcceptAsync(acceptArgs)); } } From 16800a091a9be261d3afdd9110a944ed101fd367 Mon Sep 17 00:00:00 2001 From: Stephen Toub Date: Thu, 3 Feb 2022 18:06:32 -0500 Subject: [PATCH 2/2] Remove [Outerloop] per PR feedback --- .../tests/FunctionalTests/SocketAsyncEventArgsTest.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/libraries/System.Net.Sockets/tests/FunctionalTests/SocketAsyncEventArgsTest.cs b/src/libraries/System.Net.Sockets/tests/FunctionalTests/SocketAsyncEventArgsTest.cs index ee11049a1a61f..e691520ce5b5f 100644 --- a/src/libraries/System.Net.Sockets/tests/FunctionalTests/SocketAsyncEventArgsTest.cs +++ b/src/libraries/System.Net.Sockets/tests/FunctionalTests/SocketAsyncEventArgsTest.cs @@ -587,7 +587,6 @@ public void AcceptAsync_WithReceiveBuffer_Success() } } - [OuterLoop] [Fact] [PlatformSpecific(TestPlatforms.Windows)] // Unix platforms don't yet support receiving data with AcceptAsync. public void AcceptAsync_WithTooSmallReceiveBuffer_Failure()