summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Parks <jparks@google.com>2014-12-02 17:06:51 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-12-02 17:06:51 +0000
commit0f8e85c36650d20d9818ffda1ce87243ea829285 (patch)
tree7562e27ebf5452adeff7c39c4e892f9225bde080
parent1791f6be1bd2733babb0c862ad8509f4c847b48f (diff)
parent40122b34be21ad22816427c807d88a2d8fcd8b22 (diff)
downloadlibcore-0f8e85c36650d20d9818ffda1ce87243ea829285.zip
libcore-0f8e85c36650d20d9818ffda1ce87243ea829285.tar.gz
libcore-0f8e85c36650d20d9818ffda1ce87243ea829285.tar.bz2
am 40122b34: Fix failing connection tests.
* commit '40122b34be21ad22816427c807d88a2d8fcd8b22': Fix failing connection tests.
-rw-r--r--luni/src/test/java/libcore/java/net/OldSocketTest.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/luni/src/test/java/libcore/java/net/OldSocketTest.java b/luni/src/test/java/libcore/java/net/OldSocketTest.java
index b0125ac..80bee69 100644
--- a/luni/src/test/java/libcore/java/net/OldSocketTest.java
+++ b/luni/src/test/java/libcore/java/net/OldSocketTest.java
@@ -119,9 +119,10 @@ public class OldSocketTest extends OldSocketTestCase {
}
public void test_ConstructorLjava_lang_StringILjava_net_InetAddressI2() throws IOException {
- Socket s1 = new Socket("www.google.com", 80, null, 0);
+ int sport = startServer("Cons String,I,InetAddress,I");
+ Socket s1 = new Socket(InetAddress.getLocalHost(), sport, null, 0);
try {
- Socket s2 = new Socket("www.google.com", 80, null, s1.getLocalPort());
+ Socket s2 = new Socket(InetAddress.getLocalHost(), sport, null, s1.getLocalPort());
try {
s2.close();
} catch (IOException ignored) {