You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by nd...@apache.org on 2006/08/18 04:40:09 UTC
svn commit: r432467 -
/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/SocketTest.java
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;
}