Apache Lucene open-source search software
SOLR-2028: fix AutoCommitTest
Yonik Seeley6da5460911a6
diff --git a/solr/src/test/org/apache/solr/update/AutoCommitTest.java b/solr/src/test/org/apache/solr/update/AutoCommitTest.javaindex 8ebb236c6a1..e121423394c 100644--- a/solr/src/test/org/apache/solr/update/AutoCommitTest.java+++ b/solr/src/test/org/apache/solr/update/AutoCommitTest.java@@ -67,8 +67,7 @@ class CommitListener implements SolrEventListener {// since there could be two commits in a row, don't test for a specific new searcher// just test that the old one has been replaced.if (s != currentSearcher) return true;- Thread.sleep(250);- break;+ // it may be that a commit just happened, but the new searcher hasn't been registered yet.}Thread.sleep( 250 );} catch (InterruptedException e) {}