commit | 2bc5779403c15c72d34eabccf6d5358f6c84d591 | [log] [tgz] |
---|---|---|
author | Victor Chang <vichang@google.com> | Wed Sep 06 08:41:28 2017 +0000 |
committer | android-build-merger <android-build-merger@google.com> | Wed Sep 06 08:41:28 2017 +0000 |
tree | 557f5784cc58da46412ca9348caa19f84cd78400 | |
parent | 9eec60bf8de3ae762ebe20a73890759b1f2eb36c [diff] | |
parent | 40c8320b5f77587902c634ac09e6607d0a7acad9 [diff] |
Merge "Merge "Fix DatagramSocketTest#test_getRemoteSocketAddress" into nougat-cts-dev am: c2fc4acfdf" into nougat-mr1-cts-dev am: 40c8320b5f Change-Id: I8f8f556d1e36b58b19f34ec1c095192ea6bd95ab
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 4998dc5..198e725 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
@@ -713,7 +713,7 @@ // now create one that is not connected and validate that we get the // right answer 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