Apache Lucene open-source search software
fix SnapshotDeletionPolicy to remove the test dir if present to prevent false failures
Michael McCandless6cab0952aa07
diff --git a/src/test/org/apache/lucene/TestSnapshotDeletionPolicy.java b/src/test/org/apache/lucene/TestSnapshotDeletionPolicy.javaindex 104f26f86be..ee0e40a4e74 100644--- a/src/test/org/apache/lucene/TestSnapshotDeletionPolicy.java+++ b/src/test/org/apache/lucene/TestSnapshotDeletionPolicy.java@@ -52,6 +52,8 @@ public class TestSnapshotDeletionPolicy extends LuceneTestCasepublic void testSnapshotDeletionPolicy() throws Exception {File dir = new File(System.getProperty("tempDir"), INDEX_PATH);try {+ // Sometimes past test leaves the dir+ _TestUtil.rmDir(dir);Directory fsDir = FSDirectory.getDirectory(dir);runTest(fsDir);fsDir.close();