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