diff options
author | Jason Parks <jparks@google.com> | 2014-12-02 17:06:51 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-12-02 17:06:51 +0000 |
commit | 0f8e85c36650d20d9818ffda1ce87243ea829285 (patch) | |
tree | 7562e27ebf5452adeff7c39c4e892f9225bde080 | |
parent | 1791f6be1bd2733babb0c862ad8509f4c847b48f (diff) | |
parent | 40122b34be21ad22816427c807d88a2d8fcd8b22 (diff) | |
download | libcore-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.java | 5 |
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) { |