diff --git a/solr/core/src/test/org/apache/solr/update/AutoCommitTest.java b/solr/core/src/test/org/apache/solr/update/AutoCommitTest.java index 5cb582081f9..01855fcc396 100644 --- a/solr/core/src/test/org/apache/solr/update/AutoCommitTest.java +++ b/solr/core/src/test/org/apache/solr/update/AutoCommitTest.java @@ -235,7 +235,6 @@ public class AutoCommitTest extends AbstractSolrTestCase { 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 AbstractSolrTestCase { 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;