lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r982442 - /lucene/dev/trunk/solr/src/test/org/apache/solr/update/AutoCommitTest.java
Date Thu, 05 Aug 2010 00:24:29 GMT
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) {}



Mime
View raw message