Author: markt Date: Sat Jan 14 18:13:00 2012 New Revision: 1231542 URL: http://svn.apache.org/viewvc?rev=1231542&view=rev Log: Fix failing APR unit test since connectors were switched to bind to localhost for tests
Modified: tomcat/trunk/test/org/apache/tomcat/util/net/TestXxxEndpoint.java Modified: tomcat/trunk/test/org/apache/tomcat/util/net/TestXxxEndpoint.java URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/tomcat/util/net/TestXxxEndpoint.java?rev=1231542&r1=1231541&r2=1231542&view=diff ============================================================================== --- tomcat/trunk/test/org/apache/tomcat/util/net/TestXxxEndpoint.java (original) +++ tomcat/trunk/test/org/apache/tomcat/util/net/TestXxxEndpoint.java Sat Jan 14 18:13:00 2012 @@ -65,7 +65,8 @@ public class TestXxxEndpoint extends Tom */ long serverSock = 0; - String address = null; + String address = InetAddress.getByName("localhost").getHostAddress(); + // Create the APR address that will be bound int family = Socket.APR_INET; if (Library.APR_HAVE_IPV6) { --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org