hossman has a better test for this, but for now try and make it a bit more sane

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1161071 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2011-08-24 12:30:04 +00:00
parent 8f2c67ad67
commit cf4e150ce1
1 changed files with 0 additions and 3 deletions

View File

@ -235,7 +235,6 @@ public class AutoCommitTest extends AbstractSolrTestCase {
assertEquals( 3, tracker.getCommitCount() ); assertEquals( 3, tracker.getCommitCount() );
assertQ("now it should", req("id:500") ,"//result[@numFound=1]" ); 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 { public void testSoftCommitMaxDocs() throws Exception {
@ -402,10 +401,8 @@ public class AutoCommitTest extends AbstractSolrTestCase {
core.registerNewSearcherListener(hardTrigger); core.registerNewSearcherListener(hardTrigger);
DirectUpdateHandler2 updater = (DirectUpdateHandler2) core.getUpdateHandler(); DirectUpdateHandler2 updater = (DirectUpdateHandler2) core.getUpdateHandler();
updater.registerCommitCallback(softTrigger);
updater.registerSoftCommitCallback(softTrigger); updater.registerSoftCommitCallback(softTrigger);
updater.registerCommitCallback(hardTrigger); updater.registerCommitCallback(hardTrigger);
updater.registerSoftCommitCallback(hardTrigger);
CommitTracker hardTracker = updater.commitTracker; CommitTracker hardTracker = updater.commitTracker;
CommitTracker softTracker = updater.softCommitTracker; CommitTracker softTracker = updater.softCommitTracker;