directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r918146 - /directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/search/SearchIT.java
Date Tue, 02 Mar 2010 18:45:15 GMT
Author: kayyagari
Date: Tue Mar  2 18:45:15 2010
New Revision: 918146

URL: http://svn.apache.org/viewvc?rev=918146&view=rev
Log:
fixed the testAbandonnedRequest method

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=918146&r1=918145&r2=918146&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
Tue Mar  2 18:45:15 2010
@@ -1616,7 +1616,6 @@
     /**
      * test an abandonned search request.
      */
-    @Ignore
     @Test
     public void testAbandonnedRequest() throws Exception
     {
@@ -1653,14 +1652,16 @@
 
                 if ( count == 10 )
                 {
-                    //asyncCnx.abandon( msg.getMessageID() );
+                    // the message ID = 1 bind op + 1000 add ops + 1 search op
+                    asyncCnx.abandon( 1002 );
                 }
             }
 
-            assertEquals( 100, count );
+            assertEquals( 10, count );
         }
         catch ( LdapException e )
         {
+            e.printStackTrace();
             fail( "Should not have caught exception." );
         }
         finally



Mime
View raw message