diff --git a/solr/core/src/test-files/solr/conf/solrconfig-mergepolicy.xml b/solr/core/src/test-files/solr/conf/solrconfig-mergepolicy.xml index 40d9bada24a..4827bff945c 100644 --- a/solr/core/src/test-files/solr/conf/solrconfig-mergepolicy.xml +++ b/solr/core/src/test-files/solr/conf/solrconfig-mergepolicy.xml @@ -33,6 +33,7 @@ 19 9 + 1.0 diff --git a/solr/core/src/test/org/apache/solr/core/TestMergePolicyConfig.java b/solr/core/src/test/org/apache/solr/core/TestMergePolicyConfig.java index 5db7b187738..2f3738e4db8 100644 --- a/solr/core/src/test/org/apache/solr/core/TestMergePolicyConfig.java +++ b/solr/core/src/test/org/apache/solr/core/TestMergePolicyConfig.java @@ -45,5 +45,9 @@ public class TestMergePolicyConfig extends SolrTestCaseJ4 { // make sure we overrode segmentsPerTier (split from maxMergeAtOnce out of mergeFactor) assertEquals(9D, tieredMP.getSegmentsPerTier(), 0.001); + + // make sure we overrode noCFSRatio (useless because we disabled useCompoundFile, + // but just to make sure it works) + assertEquals(1.0D, tieredMP.getNoCFSRatio(), 0.001); } }