directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r798503 - /directory/apacheds/trunk/ldap-api-test/src/test/java/org/apache/directory/shared/client/api/operations/ClientAbandonRequestTest.java
Date Tue, 28 Jul 2009 12:25:07 GMT
Author: elecharny
Date: Tue Jul 28 12:25:07 2009
New Revision: 798503

URL: http://svn.apache.org/viewvc?rev=798503&view=rev
Log:
Switched to a more accurate assert()

Modified:
    directory/apacheds/trunk/ldap-api-test/src/test/java/org/apache/directory/shared/client/api/operations/ClientAbandonRequestTest.java

Modified: directory/apacheds/trunk/ldap-api-test/src/test/java/org/apache/directory/shared/client/api/operations/ClientAbandonRequestTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/ldap-api-test/src/test/java/org/apache/directory/shared/client/api/operations/ClientAbandonRequestTest.java?rev=798503&r1=798502&r2=798503&view=diff
==============================================================================
--- directory/apacheds/trunk/ldap-api-test/src/test/java/org/apache/directory/shared/client/api/operations/ClientAbandonRequestTest.java
(original)
+++ directory/apacheds/trunk/ldap-api-test/src/test/java/org/apache/directory/shared/client/api/operations/ClientAbandonRequestTest.java
Tue Jul 28 12:25:07 2009
@@ -91,7 +91,7 @@
     {
         // injecting some values to keep the
         // followed search operation to run for a while
-        int numEntries = 20;
+        final int numEntries = 100;
         
         for ( int i = 0; i < numEntries; i++ )
         {
@@ -139,7 +139,7 @@
                 if ( count.get() == 13 )
                 {
                     int id = searchResultEntry.getMessageId();
-                    assertEquals( 22, id );
+                    assertEquals( numEntries + 2, id );
                     System.out.println( "Abandonning message " + id );
                     connection.abandon( id );
                     abandonned.set( true );
@@ -169,6 +169,6 @@
             n++;
         }
         
-        assertEquals( 21, n );
+        assertTrue( n == numEntries + 1 );
     }
 }



Mime
View raw message