diff --git a/solr/core/src/test/org/apache/solr/schema/TestUseDocValuesAsStored.java b/solr/core/src/test/org/apache/solr/schema/TestUseDocValuesAsStored.java index 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 { @Test public void testMultipleSearchResults() throws Exception { - // Three documents with different numbers of values for a field assertU(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"));