SOLR-2028: fix AutoCommitTest

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@982442 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2010-08-05 00:24:28 +00:00
parent b8dc30b7e3
commit 6da5460911
1 changed files with 1 additions and 2 deletions

View File

@ -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) {}