diff --git a/src/libraries/System.Net.Sockets/tests/FunctionalTests/SocketAsyncEventArgsTest.cs b/src/libraries/System.Net.Sockets/tests/FunctionalTests/SocketAsyncEventArgsTest.cs index 2c0ec09e6a6cf..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() @@ -604,7 +603,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)); } }