From 6da5460911a658fb2834b37f8173b75006f8a74a Mon Sep 17 00:00:00 2001 From: Yonik Seeley Date: Thu, 5 Aug 2010 00:24:28 +0000 Subject: [PATCH] SOLR-2028: fix AutoCommitTest git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@982442 13f79535-47bb-0310-9956-ffa450edef68 --- solr/src/test/org/apache/solr/update/AutoCommitTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/solr/src/test/org/apache/solr/update/AutoCommitTest.java b/solr/src/test/org/apache/solr/update/AutoCommitTest.java index 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) {}