From a4df7d4923aa6a6e67f7044e4682e71c598fb312 Mon Sep 17 00:00:00 2001 From: Marek Safar Date: Thu, 16 Feb 2017 00:04:19 +0100 Subject: [PATCH] [System] Fixes failing tests on mobile --- .../Test/System.Net.WebSockets/ClientWebSocketTest.cs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/mcs/class/System/Test/System.Net.WebSockets/ClientWebSocketTest.cs b/mcs/class/System/Test/System.Net.WebSockets/ClientWebSocketTest.cs index cacfcd60a0e..9c539092359 100644 --- a/mcs/class/System/Test/System.Net.WebSockets/ClientWebSocketTest.cs +++ b/mcs/class/System/Test/System.Net.WebSockets/ClientWebSocketTest.cs @@ -167,11 +167,8 @@ namespace MonoTests.System.Net.WebSockets } [Test] -#if FEATURE_NO_BSD_SOCKETS - [ExpectedException (typeof (PlatformNotSupportedException))] -#else [ExpectedException (typeof (InvalidOperationException))] -#endif + [Category ("MobileNotWorking")] // Fails when ran as part of the entire BCL test suite. Works when only this fixture is ran public void SendAsyncArgTest_NotConnected () { socket.SendAsync (new ArraySegment (new byte[0]), WebSocketMessageType.Text, true, CancellationToken.None); @@ -186,11 +183,8 @@ namespace MonoTests.System.Net.WebSockets } [Test] -#if FEATURE_NO_BSD_SOCKETS [ExpectedException (typeof (PlatformNotSupportedException))] -#else - [ExpectedException (typeof (InvalidOperationException))] -#endif + [Category ("MobileNotWorking")] // Fails when ran as part of the entire BCL test suite. Works when only this fixture is ran public void ReceiveAsyncArgTest_NotConnected () { socket.ReceiveAsync (new ArraySegment (new byte[0]), CancellationToken.None); -- 2.25.1