mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-16 11:21:08 -10:00
[System] Fixes failing tests on mobile
This commit is contained in:
1 parent
6e89ac3b20
commit
a4df7d4923
1 file changed
+2
-8
@@ -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<byte> (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<byte> (new byte[0]), CancellationToken.None);
|
||||
|
||||
Reference in new issue
Block a user