directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1486311 - /directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/search/SearchIT.java
Date Sat, 25 May 2013 10:36:10 GMT
Author: elecharny
Date: Sat May 25 10:36:09 2013
New Revision: 1486311

URL: http://svn.apache.org/r1486311
Log:
Slight speedup : we don't anymore inject 1000 new entries for teh AbandonTest

Modified:
    directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/search/SearchIT.java

Modified: directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/search/SearchIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/search/SearchIT.java?rev=1486311&r1=1486310&r2=1486311&view=diff
==============================================================================
--- directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/search/SearchIT.java
(original)
+++ directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/search/SearchIT.java
Sat May 25 10:36:09 2013
@@ -386,6 +386,7 @@ public class SearchIT extends AbstractLd
         }
         catch ( NamingException ne )
         {
+            ne.printStackTrace();
             fail();
         }
     }
@@ -1669,8 +1670,8 @@ public class SearchIT extends AbstractLd
             // first binding. (hmmm, even client API won't allow searching without binding)
             asyncCnx.bind( "uid=admin,ou=system", "secret" );
     
-            // First, add 1000 entries in the server
-            for ( int i = 0; i < 1000; i++ )
+            // First, add 100 entries in the server
+            for ( int i = 0; i < 100; i++ )
             {
                 String dn = "cn=user" + i + "," + BASE;
                 Entry kate = new DefaultEntry( dn );
@@ -1694,8 +1695,8 @@ public class SearchIT extends AbstractLd
     
                 if ( count == 10 )
                 {
-                    // the message ID = 1 bind op + 1000 add ops + 1 search op
-                    asyncCnx.abandon( 1002 );
+                    // the message ID = 1 bind op + 100 add ops + 1 search op
+                    asyncCnx.abandon( 102 );
                 }
             }
     



Mime
View raw message