diff options
author | Sebastien Pouliot <sebastien@xamarin.com> | 2013-06-20 23:46:41 +0400 |
---|---|---|
committer | Sebastien Pouliot <sebastien@xamarin.com> | 2013-06-20 23:46:55 +0400 |
commit | 313cb0f6be7fa91a30c4c4c841e183d0658858c6 (patch) | |
tree | 247d6a9d7d0f953382e75b7b18268b429381a36f | |
parent | 8f3522361b803c5a04858d9aab13a9e4a8023ff4 (diff) |
Do not assume AddressList[0] has the address the test wants, that's not always the case, and not what UdpClient should be testingmobile-master
-rw-r--r-- | mcs/class/System/Test/System.Net.Sockets/UdpClientTest.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mcs/class/System/Test/System.Net.Sockets/UdpClientTest.cs b/mcs/class/System/Test/System.Net.Sockets/UdpClientTest.cs index 2062cf84f62..6fa403c6075 100644 --- a/mcs/class/System/Test/System.Net.Sockets/UdpClientTest.cs +++ b/mcs/class/System/Test/System.Net.Sockets/UdpClientTest.cs @@ -1032,7 +1032,7 @@ namespace MonoTests.System.Net.Sockets { client.BeginReceive (BRCallback, client); - IPEndPoint ep = new IPEndPoint (Dns.GetHostEntry (string.Empty).AddressList[0], 1237); + IPEndPoint ep = new IPEndPoint (IPAddress.Loopback, 1237); byte[] send_bytes = new byte[] {10, 11, 12, 13}; client.Send (send_bytes, send_bytes.Length, ep); @@ -1052,7 +1052,7 @@ namespace MonoTests.System.Net.Sockets { public void Available () { UdpClient client = new UdpClient (1238); - IPEndPoint ep = new IPEndPoint (Dns.GetHostEntry (string.Empty).AddressList[0], 1238); + IPEndPoint ep = new IPEndPoint (IPAddress.Loopback, 1238); byte[] bytes = new byte[] {10, 11, 12, 13}; client.Send (bytes, bytes.Length, ep); |