directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r156043 - incubator/directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/AbstractServerTest.java
Date Thu, 03 Mar 2005 14:44:53 GMT
Author: trustin
Date: Thu Mar  3 06:44:52 2005
New Revision: 156043

URL: http://svn.apache.org/viewcvs?view=rev&rev=156043
Log:
Fixed: Test fails if the port 1024 is already taken.

Modified:
    incubator/directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/AbstractServerTest.java

Modified: incubator/directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/AbstractServerTest.java
URL: http://svn.apache.org/viewcvs/incubator/directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/AbstractServerTest.java?view=diff&r1=156042&r2=156043
==============================================================================
--- incubator/directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/AbstractServerTest.java
(original)
+++ incubator/directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/AbstractServerTest.java
Thu Mar  3 06:44:52 2005
@@ -40,6 +40,7 @@
 import org.apache.ldap.common.message.LockableAttributesImpl;
 import org.apache.ldap.common.name.LdapName;
 import org.apache.ldap.server.jndi.EnvKeys;
+import org.apache.mina.util.AvailablePortFinder;
 
 
 /**
@@ -82,8 +83,7 @@
             doDelete( new File( "target" + File.separator + "apacheds" ) );
         }
 
-//        int port = AvailablePortFinder.getNextAvailable( 1024 );
-        int port = 1024;
+        int port = AvailablePortFinder.getNextAvailable( 1024 );
 
         extras.put( EnvKeys.LDAP_PORT, String.valueOf( port ) );
 



Mime
View raw message