lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sar...@apache.org
Subject [1/2] lucene-solr:branch_7x: SOLR-10796: fix failing stats tests by starting with an empty index.
Date Tue, 11 Jul 2017 14:48:57 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/branch_7_0 00142c921 -> 4391b14b6
  refs/heads/branch_7x ef2f837b2 -> 9af2f78d4


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/9af2f78d
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/9af2f78d
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/9af2f78d

Branch: refs/heads/branch_7x
Commit: 9af2f78d4c5bf57f6a1721350bb412fa15185b9a
Parents: ef2f837
Author: Steve Rowe <sarowe@apache.org>
Authored: Tue Jul 11 10:48:14 2017 -0400
Committer: Steve Rowe <sarowe@apache.org>
Committed: Tue Jul 11 10:48:33 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/9af2f78d/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));


Mime
View raw message