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 2012/09/13 19:36:51 UTC

svn commit: r1384420 - /lucene/dev/trunk/solr/core/src/test/org/apache/solr/search/TestRecovery.java

Author: yonik
Date: Thu Sep 13 17:36:51 2012
New Revision: 1384420

URL: http://svn.apache.org/viewvc?rev=1384420&view=rev
Log:
tests: try to prevent corrupt tlog test from failing other methods on windows

Modified:
    lucene/dev/trunk/solr/core/src/test/org/apache/solr/search/TestRecovery.java

Modified: lucene/dev/trunk/solr/core/src/test/org/apache/solr/search/TestRecovery.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/test/org/apache/solr/search/TestRecovery.java?rev=1384420&r1=1384419&r2=1384420&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/test/org/apache/solr/search/TestRecovery.java (original)
+++ lucene/dev/trunk/solr/core/src/test/org/apache/solr/search/TestRecovery.java Thu Sep 13 17:36:51 2012
@@ -915,6 +915,10 @@ public class TestRecovery extends SolrTe
 
       assertJQ(req("q","*:*") ,"/response/numFound==3");
 
+      // This messes up some other tests (on windows) if we don't remove the bad log.
+      // This *should* hopefully just be because the tests are too fragile and not because of real bugs - but it should be investigated further.
+      deleteLogs();
+
     } finally {
       DirectUpdateHandler2.commitOnClose = true;
       UpdateLog.testing_logReplayHook = null;