You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2012/01/14 19:13:01 UTC

svn commit: r1231542 - /tomcat/trunk/test/org/apache/tomcat/util/net/TestXxxEndpoint.java

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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org