From e494b8841b59b7acbe4b89cc4719260550432d0a Mon Sep 17 00:00:00 2001 From: Yonik Seeley Date: Thu, 13 Sep 2012 17:36:51 +0000 Subject: [PATCH] tests: try to prevent corrupt tlog test from failing other methods on windows git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1384420 13f79535-47bb-0310-9956-ffa450edef68 --- solr/core/src/test/org/apache/solr/search/TestRecovery.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/solr/core/src/test/org/apache/solr/search/TestRecovery.java b/solr/core/src/test/org/apache/solr/search/TestRecovery.java index f31879a0016..be49f76c71e 100644 --- a/solr/core/src/test/org/apache/solr/search/TestRecovery.java +++ b/solr/core/src/test/org/apache/solr/search/TestRecovery.java @@ -915,6 +915,10 @@ public class TestRecovery extends SolrTestCaseJ4 { 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;