mirror of https://github.com/apache/lucene.git
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:
parent
8f2c67ad67
commit
cf4e150ce1
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue