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 2011/11/30 00:44:12 UTC

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

Author: markt
Date: Tue Nov 29 23:44:03 2011
New Revision: 1208145

URL: http://svn.apache.org/viewvc?rev=1208145&view=rev
Log:
Fix failing test for APR now random ports are used by default

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=1208145&r1=1208144&r2=1208145&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/tomcat/util/net/TestXxxEndpoint.java (original)
+++ tomcat/trunk/test/org/apache/tomcat/util/net/TestXxxEndpoint.java Tue Nov 29 23:44:03 2011
@@ -118,10 +118,10 @@ public class TestXxxEndpoint extends Tom
         File appDir = new File(getBuildDirectory(), "webapps/examples");
         tomcat.addWebapp(null, "/examples", appDir.getAbsolutePath());
 
-        int port = getPort();
-
         tomcat.start();
 
+        int port = getPort();
+
         tomcat.getConnector().stop();
         Exception e = null;
         ServerSocket s = null;



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org