SOLR-5695: Make best effort to clean up suggester index

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1566388 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Areek Zillur 2014-02-09 20:11:50 +00:00
parent 9b46f41aa2
commit ec096aca16
2 changed files with 4 additions and 4 deletions

View File

@ -38,9 +38,9 @@ public class TestAnalyzeInfixSuggestions extends SolrTestCaseJ4 {
File indexPathDir = new File("analyzingInfixSuggesterIndexDir"); File indexPathDir = new File("analyzingInfixSuggesterIndexDir");
File indexPathDirTmp = new File("analyzingInfixSuggesterIndexDir.tmp"); File indexPathDirTmp = new File("analyzingInfixSuggesterIndexDir.tmp");
if (indexPathDir.exists()) if (indexPathDir.exists())
assertTrue(recurseDelete(indexPathDir)); recurseDelete(indexPathDir);
if (indexPathDirTmp.exists()) if (indexPathDirTmp.exists())
assertTrue(recurseDelete(indexPathDirTmp)); recurseDelete(indexPathDirTmp);
} }
public void testSingle() throws Exception { public void testSingle() throws Exception {

View File

@ -37,9 +37,9 @@ public class TestBlendedInfixSuggestions extends SolrTestCaseJ4 {
File indexPathDir = new File("blendedInfixSuggesterIndexDir"); File indexPathDir = new File("blendedInfixSuggesterIndexDir");
File indexPathDirTmp = new File("blendedInfixSuggesterIndexDir.tmp"); File indexPathDirTmp = new File("blendedInfixSuggesterIndexDir.tmp");
if (indexPathDir.exists()) if (indexPathDir.exists())
assertTrue(recurseDelete(indexPathDir)); recurseDelete(indexPathDir);
if (indexPathDirTmp.exists()) if (indexPathDirTmp.exists())
assertTrue(recurseDelete(indexPathDirTmp)); recurseDelete(indexPathDirTmp);
} }
public void testLinearBlenderType() { public void testLinearBlenderType() {