directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r517933 - /directory/apacheds/branches/1.0/core-unit/src/test/java/org/apache/directory/server/core/jndi/SearchContextITest.java
Date Tue, 13 Mar 2007 23:11:21 GMT
Author: akarasulu
Date: Tue Mar 13 16:11:20 2007
New Revision: 517933

URL: http://svn.apache.org/viewvc?view=rev&rev=517933
Log:
give the integration test more time to work correctly to return all matching entries

Modified:
    directory/apacheds/branches/1.0/core-unit/src/test/java/org/apache/directory/server/core/jndi/SearchContextITest.java

Modified: directory/apacheds/branches/1.0/core-unit/src/test/java/org/apache/directory/server/core/jndi/SearchContextITest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/1.0/core-unit/src/test/java/org/apache/directory/server/core/jndi/SearchContextITest.java?view=diff&rev=517933&r1=517932&r2=517933
==============================================================================
--- directory/apacheds/branches/1.0/core-unit/src/test/java/org/apache/directory/server/core/jndi/SearchContextITest.java
(original)
+++ directory/apacheds/branches/1.0/core-unit/src/test/java/org/apache/directory/server/core/jndi/SearchContextITest.java
Tue Mar 13 16:11:20 2007
@@ -346,7 +346,7 @@
         SearchControls controls = new SearchControls();
         controls.setSearchScope( SearchControls.SUBTREE_SCOPE );
         controls.setDerefLinkFlag( false );
-        controls.setTimeLimit( 200 );
+        controls.setTimeLimit( 1000 );
         sysRoot.addToEnvironment( DerefAliasesEnum.JNDI_PROP, DerefAliasesEnum.NEVERDEREFALIASES.getName()
);
 
         HashMap map = new HashMap();
@@ -359,7 +359,7 @@
             {
                 try
                 {
-                    Thread.sleep( 201 );
+                    Thread.sleep( 1001 );
                 }
                 catch ( InterruptedException e )
                 {
@@ -381,7 +381,7 @@
         catch ( LdapTimeLimitExceededException e )
         {
         }
-        assertEquals( "Expected number of results returned was incorrect", 1, map.size()
);
+        assertEquals( "Expected number of results returned was incorrect", 2, map.size()
);
     }
     
     



Mime
View raw message