Skip to content

Apache Lucene open-source search software

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

Areek Zillurec096aca166b
diff --git a/solr/core/src/test/org/apache/solr/spelling/suggest/TestAnalyzeInfixSuggestions.java b/solr/core/src/test/org/apache/solr/spelling/suggest/TestAnalyzeInfixSuggestions.java
index 0e076ef3268..87e0dac8130 100644
--- a/solr/core/src/test/org/apache/solr/spelling/suggest/TestAnalyzeInfixSuggestions.java
+++ b/solr/core/src/test/org/apache/solr/spelling/suggest/TestAnalyzeInfixSuggestions.java
@@ -38,9 +38,9 @@ public class TestAnalyzeInfixSuggestions extends SolrTestCaseJ4 {
File indexPathDir = new File("analyzingInfixSuggesterIndexDir");
File indexPathDirTmp = new File("analyzingInfixSuggesterIndexDir.tmp");
if (indexPathDir.exists())
- assertTrue(recurseDelete(indexPathDir));
+ recurseDelete(indexPathDir);
if (indexPathDirTmp.exists())
- assertTrue(recurseDelete(indexPathDirTmp));
+ recurseDelete(indexPathDirTmp);
}
public void testSingle() throws Exception {
diff --git a/solr/core/src/test/org/apache/solr/spelling/suggest/TestBlendedInfixSuggestions.java b/solr/core/src/test/org/apache/solr/spelling/suggest/TestBlendedInfixSuggestions.java
index ee2c93cccc0..23a690f120e 100644
--- a/solr/core/src/test/org/apache/solr/spelling/suggest/TestBlendedInfixSuggestions.java
+++ b/solr/core/src/test/org/apache/solr/spelling/suggest/TestBlendedInfixSuggestions.java
@@ -37,9 +37,9 @@ public class TestBlendedInfixSuggestions extends SolrTestCaseJ4 {
File indexPathDir = new File("blendedInfixSuggesterIndexDir");
File indexPathDirTmp = new File("blendedInfixSuggesterIndexDir.tmp");
if (indexPathDir.exists())
- assertTrue(recurseDelete(indexPathDir));
+ recurseDelete(indexPathDir);
if (indexPathDirTmp.exists())
- assertTrue(recurseDelete(indexPathDirTmp));
+ recurseDelete(indexPathDirTmp);
}
public void testLinearBlenderType() {