Sfoglia il codice sorgente

* SocketTest.cs: use IPAddress.Loopback in IPEndPoint to allow
AcceptBlockingStatus test to pass on both Mono and MS.NET.

svn path=/trunk/mcs/; revision=45400

Gert Driesen 20 anni fa
parent
commit
95a2deb1e0

+ 5 - 0
mcs/class/System/Test/System.Net.Sockets/ChangeLog

@@ -1,3 +1,8 @@
+2005-06-04 Gert Driesen <[email protected]>
+
+	* SocketTest.cs: use IPAddress.Loopback in IPEndPoint to allow 
+	AcceptBlockingStatus test to pass on both Mono and MS.NET.
+
 2005-06-04 Gert Driesen <[email protected]>
 
 	* SocketTest.cs: added test for bug #75154.

+ 1 - 2
mcs/class/System/Test/System.Net.Sockets/SocketTest.cs

@@ -77,7 +77,7 @@ namespace MonoTests.System.Net.Sockets
 		
 		private bool BlockingConnect (bool block)
 		{
-			IPEndPoint ep = new IPEndPoint(IPAddress.Any, 1234);
+			IPEndPoint ep = new IPEndPoint(IPAddress.Loopback, 1234);
 			Socket server = new Socket(AddressFamily.InterNetwork,
 						   SocketType.Stream,
 						   ProtocolType.Tcp);
@@ -102,7 +102,6 @@ namespace MonoTests.System.Net.Sockets
 		}
 
 		[Test]
-		[Category("NotDotNet")]
 		public void AcceptBlockingStatus()
 		{
 			bool block;