You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by yo...@apache.org on 2010/08/05 02:24:29 UTC

svn commit: r982442 - /lucene/dev/trunk/solr/src/test/org/apache/solr/update/AutoCommitTest.java

Author: yonik
Date: Thu Aug  5 00:24:28 2010
New Revision: 982442

URL: http://svn.apache.org/viewvc?rev=982442&view=rev
Log:
SOLR-2028: fix AutoCommitTest

Modified:
    lucene/dev/trunk/solr/src/test/org/apache/solr/update/AutoCommitTest.java

Modified: lucene/dev/trunk/solr/src/test/org/apache/solr/update/AutoCommitTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/src/test/org/apache/solr/update/AutoCommitTest.java?rev=982442&r1=982441&r2=982442&view=diff
==============================================================================
--- lucene/dev/trunk/solr/src/test/org/apache/solr/update/AutoCommitTest.java (original)
+++ lucene/dev/trunk/solr/src/test/org/apache/solr/update/AutoCommitTest.java Thu Aug  5 00:24:28 2010
@@ -67,8 +67,7 @@ class CommitListener implements SolrEven
           // 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) {}