jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r1143198 - /jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/lucene/IndexingQueueTest.java
Date Tue, 05 Jul 2011 20:48:57 GMT
Author: jukka
Date: Tue Jul  5 20:48:57 2011
New Revision: 1143198

URL: http://svn.apache.org/viewvc?rev=1143198&view=rev
Log:
JCR-3011: Fix incorrect IndexingQueueTest logic

Force the VolatileIndex to commit all pending changes

Modified:
    jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/lucene/IndexingQueueTest.java

Modified: jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/lucene/IndexingQueueTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/lucene/IndexingQueueTest.java?rev=1143198&r1=1143197&r2=1143198&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/lucene/IndexingQueueTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/lucene/IndexingQueueTest.java
Tue Jul  5 20:48:57 2011
@@ -55,6 +55,7 @@ public class IndexingQueueTest extends A
         resource.setProperty("jcr:mimeType", BlockingParser.TYPE.toString());
         session.save();
 
+        index.getIndex().getVolatileIndex().commit();
         assertEquals(1, queue.getNumPendingDocuments());
 
         Query q = qm.createQuery(testPath + "/*[jcr:contains(., 'fox')]", Query.XPATH);



Mime
View raw message