harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndbe...@apache.org
Subject svn commit: r432467 - /incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/SocketTest.java
Date Fri, 18 Aug 2006 02:40:09 GMT
Author: ndbeyer
Date: Thu Aug 17 19:40:05 2006
New Revision: 432467

URL: http://svn.apache.org/viewvc?rev=432467&view=rev
Log:
Apply patch for HARMONY-1212: [classlib][luni] Remove unnecessary external dependencies in
tests.api.java.net.SocketTest.java

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/SocketTest.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/SocketTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/SocketTest.java?rev=432467&r1=432466&r2=432467&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/SocketTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/SocketTest.java
Thu Aug 17 19:40:05 2006
@@ -187,9 +187,10 @@
 		} else {
 			int testPort = Support_PortManager.getNextPort();
 			Socket s1 = null, s2 = null;
+            int serverPort = ss.getLocalPort();
 			try {
-				s1 = new Socket(Support_Configuration.ProxyServerTestHost, 80,
-						InetAddress.getLocalHost(), testPort);
+				s1 = new Socket("127.0.0.1", serverPort, InetAddress
+                        .getLocalHost(), testPort);
 			} catch (IOException e) {
 				e.printStackTrace();
 
@@ -213,8 +214,8 @@
 			}
 			boolean exception = false;
 			try {
-				s2 = new Socket(Support_Configuration.ProxyServerTestHost, 80,
-						InetAddress.getLocalHost(), testPort);
+				s2 = new Socket("127.0.0.1", serverPort, InetAddress
+                        .getLocalHost(), testPort);
 			} catch (IOException e) {
 				exception = true;
 			}



Mime
View raw message