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: [email protected]
For additional commands, e-mail: [email protected]