Switches RunStyle to use "localhost" for IPv6 compat
Change-Id: I8d6e3a5d027a3ad5d6cee27a23bdfce41814228d
diff --git a/user/src/com/google/gwt/junit/RunStyle.java b/user/src/com/google/gwt/junit/RunStyle.java
index f77c6cc..e6e0739 100644
--- a/user/src/com/google/gwt/junit/RunStyle.java
+++ b/user/src/com/google/gwt/junit/RunStyle.java
@@ -18,8 +18,6 @@
import com.google.gwt.core.ext.TreeLogger;
import com.google.gwt.core.ext.UnableToCompleteException;
-import java.net.InetAddress;
-import java.net.UnknownHostException;
import java.util.Collections;
import java.util.Set;
@@ -65,11 +63,7 @@
* @return the host name of the local system
*/
public String getLocalHostName() {
- try {
- return InetAddress.getLocalHost().getHostAddress();
- } catch (UnknownHostException e) {
- throw new RuntimeException("Unable to determine my ip address", e);
- }
+ return "localhost";
}
/**