You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sa...@apache.org on 2017/07/11 14:48:58 UTC

[2/2] lucene-solr:branch_7_0: SOLR-10796: fix failing stats tests by starting with an empty index.

SOLR-10796: fix failing stats tests by starting with an empty index.


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/4391b14b
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/4391b14b
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/4391b14b

Branch: refs/heads/branch_7_0
Commit: 4391b14b637253aa5c69c1f9a3358c15830bbee2
Parents: 00142c9
Author: Steve Rowe <sa...@apache.org>
Authored: Tue Jul 11 10:48:14 2017 -0400
Committer: Steve Rowe <sa...@apache.org>
Committed: Tue Jul 11 10:48:46 2017 -0400

----------------------------------------------------------------------
 solr/core/src/test/org/apache/solr/schema/TestPointFields.java | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/4391b14b/solr/core/src/test/org/apache/solr/schema/TestPointFields.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/schema/TestPointFields.java b/solr/core/src/test/org/apache/solr/schema/TestPointFields.java
index 3dac18c..0ea0157 100644
--- a/solr/core/src/test/org/apache/solr/schema/TestPointFields.java
+++ b/solr/core/src/test/org/apache/solr/schema/TestPointFields.java
@@ -2183,6 +2183,9 @@ public class TestPointFields extends SolrTestCaseJ4 {
 
   
   private void testPointStats(String field, String dvField, String[] numbers, double min, double max, int count, int missing, double delta) {
+    clearIndex();
+    assertU(commit());
+
     String minMin = String.valueOf(min - Math.abs(delta*min));
     String maxMin = String.valueOf(min + Math.abs(delta*min));
     String minMax = String.valueOf(max - Math.abs(delta*max));