test cleanup -- remove the _version_ field from schema12.xml, and update the two tess that might care to use schema15.xml. Change is motivated by SOLR-3432 (we shouldn't be updating all 'old' configs when features are added, we need tests using older style configs to ensure we don't break stuff)

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1333704 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Chris M. Hostetter 2012-05-04 00:43:32 +00:00
parent d5eeb396a5
commit b61381fd33
3 changed files with 8 additions and 5 deletions

View File

@ -530,10 +530,13 @@
<field name="uniq3" type="string" indexed="true" stored="true"/>
<field name="nouniq" type="string" indexed="true" stored="true" multiValued="true"/>
<!-- for versioning -->
<field name="_version_" type="long" indexed="true" stored="true"/>
<!--
DO NOT INCLUDE _version_ in this schema file
We explicitly want tests using this file to *NOT* have this field
so we can verify that Solr behaves correctly w/o it in those sitautions
-->
<!-- <field name="_version_" type="long" indexed="true" stored="true"/> -->
<dynamicField name="*_coordinate" type="tdouble" indexed="true" stored="false"/>

View File

@ -55,7 +55,7 @@ public class TestRealTimeGet extends SolrTestCaseJ4 {
@BeforeClass
public static void beforeClass() throws Exception {
initCore("solrconfig-tlog.xml","schema12.xml");
initCore("solrconfig-tlog.xml","schema15.xml");
}
@Test

View File

@ -52,7 +52,7 @@ public class TestRecovery extends SolrTestCaseJ4 {
public static void beforeClass() throws Exception {
savedFactory = System.getProperty("solr.DirectoryFactory");
System.setProperty("solr.directoryFactory", "org.apache.solr.core.MockFSDirectoryFactory");
initCore("solrconfig-tlog.xml","schema12.xml");
initCore("solrconfig-tlog.xml","schema15.xml");
}
@AfterClass