You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ab...@apache.org on 2017/04/11 09:19:42 UTC
[21/23] lucene-solr:jira/solr-9959: SOLR-10437: Delete index after
each test in TestUseDocValuesAsStored
SOLR-10437: Delete index after each test in TestUseDocValuesAsStored
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/ce66ca93
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/ce66ca93
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/ce66ca93
Branch: refs/heads/jira/solr-9959
Commit: ce66ca93cf5e28748793cce8eaafab0c35cbdda9
Parents: 55e3661
Author: Tomas Fernandez Lobbe <tf...@apache.org>
Authored: Mon Apr 10 09:48:07 2017 -0700
Committer: Tomas Fernandez Lobbe <tf...@apache.org>
Committed: Mon Apr 10 09:48:07 2017 -0700
----------------------------------------------------------------------
.../test/org/apache/solr/schema/TestUseDocValuesAsStored.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/ce66ca93/solr/core/src/test/org/apache/solr/schema/TestUseDocValuesAsStored.java
----------------------------------------------------------------------
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 9cababc..136d40e 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"));