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
This commit is contained in:
Yonik Seeley 2012-09-13 17:36:51 +00:00
parent 0e33ea10fe
commit e494b8841b
1 changed files with 4 additions and 0 deletions

View File

@ -915,6 +915,10 @@ public class TestRecovery extends SolrTestCaseJ4 {
assertJQ(req("q","*:*") ,"/response/numFound==3"); 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 { } finally {
DirectUpdateHandler2.commitOnClose = true; DirectUpdateHandler2.commitOnClose = true;
UpdateLog.testing_logReplayHook = null; UpdateLog.testing_logReplayHook = null;