tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1231542 - /tomcat/trunk/test/org/apache/tomcat/util/net/TestXxxEndpoint.java
Date Sat, 14 Jan 2012 18:13:01 GMT
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


Mime
View raw message