Apache Solr open-source search software
SOLR-10437: Delete index after each test in TestUseDocValuesAsStored
Tomas Fernandez Lobbece66ca93cf5e
diff --git a/solr/core/src/test/org/apache/solr/schema/TestUseDocValuesAsStored.java b/solr/core/src/test/org/apache/solr/schema/TestUseDocValuesAsStored.javaindex 9cababc1044..136d40ee24d 100644--- a/solr/core/src/test/org/apache/solr/schema/TestUseDocValuesAsStored.java+++ b/solr/core/src/test/org/apache/solr/schema/TestUseDocValuesAsStored.java@@ -107,13 +107,14 @@ public class TestUseDocValuesAsStored extends AbstractBadConfigTestBase {}@After- private void afterClass() throws Exception {+ private void afterTest() throws Exception {+ clearIndex();+ commit();deleteCore();System.clearProperty("managed.schema.mutable");System.clearProperty("enable.update.log");}-public String getCoreName() {return "basic";}@@ -225,7 +226,6 @@ public class TestUseDocValuesAsStored extends AbstractBadConfigTestBase {@Testpublic void testMultipleSearchResults() throws Exception {-// Three documents with different numbers of values for a fieldassertU(adoc("id", "myid1", "test_is_dvo", "101", "test_is_dvo", "102", "test_is_dvo", "103"));assertU(adoc("id", "myid2", "test_is_dvo", "201", "test_is_dvo", "202"));