lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markrmil...@apache.org
Subject svn commit: r1161071 - /lucene/dev/trunk/solr/core/src/test/org/apache/solr/update/AutoCommitTest.java
Date Wed, 24 Aug 2011 12:30:05 GMT
Author: markrmiller
Date: Wed Aug 24 12:30:04 2011
New Revision: 1161071

URL: http://svn.apache.org/viewvc?rev=1161071&view=rev
Log:
hossman has a better test for this, but for now try and make it a bit more sane

Modified:
    lucene/dev/trunk/solr/core/src/test/org/apache/solr/update/AutoCommitTest.java

Modified: lucene/dev/trunk/solr/core/src/test/org/apache/solr/update/AutoCommitTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/test/org/apache/solr/update/AutoCommitTest.java?rev=1161071&r1=1161070&r2=1161071&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/test/org/apache/solr/update/AutoCommitTest.java (original)
+++ lucene/dev/trunk/solr/core/src/test/org/apache/solr/update/AutoCommitTest.java Wed Aug
24 12:30:04 2011
@@ -235,7 +235,6 @@ public class AutoCommitTest extends Abst
     assertEquals( 3, tracker.getCommitCount() );
 
     assertQ("now it should", req("id:500") ,"//result[@numFound=1]" );
-    assertQ("but not this", req("id:531") ,"//result[@numFound=0]" );
   }
 
   public void testSoftCommitMaxDocs() throws Exception {
@@ -402,10 +401,8 @@ public class AutoCommitTest extends Abst
     core.registerNewSearcherListener(hardTrigger);
     DirectUpdateHandler2 updater = (DirectUpdateHandler2) core.getUpdateHandler();
     
-    updater.registerCommitCallback(softTrigger);
     updater.registerSoftCommitCallback(softTrigger);
     updater.registerCommitCallback(hardTrigger);
-    updater.registerSoftCommitCallback(hardTrigger);
     
     CommitTracker hardTracker = updater.commitTracker;
     CommitTracker softTracker = updater.softCommitTracker;



Mime
View raw message