commit | 9384e8ff4bd4103c3ee087a156adaa7bc7787ef4 | [log] [tgz] |
---|---|---|
author | vichang <vichang@google.com> | Wed Aug 09 10:11:15 2017 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Wed Aug 09 10:11:15 2017 +0000 |
tree | afafdf6c8abe6a3dbb476c0b8d036c89e9321b29 | |
parent | 83af9f13c36854d3a6ccdd007937b8b5b5498cdd [diff] | |
parent | 9a8e89adc057dad370a4d0479518051b06550ed1 [diff] |
Merge "Fix DatagramSocketTest#test_getRemoteSocketAddress"
diff --git a/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/DatagramSocketTest.java b/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/DatagramSocketTest.java index bb9e806..45fe5f3 100644 --- a/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/DatagramSocketTest.java +++ b/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/DatagramSocketTest.java
@@ -736,7 +736,7 @@ // now create one that is not connected and validate that we get the // right answer try (DatagramSocket theSocket = new DatagramSocket(null)) { - theSocket.bind(new InetSocketAddress(InetAddress.getLocalHost(), 0)); + theSocket.bind(new InetSocketAddress(Inet6Address.LOOPBACK, 0)); assertNull(theSocket.getRemoteSocketAddress()); // now connect and validate we get the right answer