From cf4e150ce1674050950f590b2d112dece2e28e4d Mon Sep 17 00:00:00 2001 From: Mark Robert Miller Date: Wed, 24 Aug 2011 12:30:04 +0000 Subject: [PATCH] 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 --- solr/core/src/test/org/apache/solr/update/AutoCommitTest.java | 3 --- 1 file changed, 3 deletions(-) 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;