Fix UdpClientTest.UdpClientBroadcastTest().
authorMartin Baulig <martin.baulig@gmail.com>
Wed, 27 Jun 2012 00:22:10 +0000 (02:22 +0200)
committerMartin Baulig <martin.baulig@gmail.com>
Wed, 27 Jun 2012 00:26:07 +0000 (02:26 +0200)
You must not use Send() with an endpoint after using either the
hostname constructor or calling Connect(); see the MSDN docs.

mcs/class/System/Test/System.Net.Sockets/UdpClientTest.cs

index 4eb60044aa52a063c6957799b0318f588eae9ab5..79028e155ab329fccfcff8ffee8d0c28c664dbf1 100644 (file)
@@ -383,7 +383,6 @@ namespace MonoTests.System.Net.Sockets {
                }
 
                [Test] // .ctor (String, Int32)
-               [Category ("NotOnMac")]
                public void Constructor6 ()
                {
                        MyUdpClient client;
@@ -480,10 +479,9 @@ namespace MonoTests.System.Net.Sockets {
                }
 
                [Test]
-               [Category ("NotOnMac")]
                public void UdpClientBroadcastTest () 
                {
-                       UdpClient client = new UdpClient (new IPEndPoint (IPAddress.Loopback, 1234));
+                       UdpClient client = new UdpClient ();
                        byte[] bytes = new byte[] {10, 11, 12, 13};
 
                        try {