You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by da...@apache.org on 2017/07/13 07:18:23 UTC

[15/41] lucene-solr:feature/autoscaling: 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/5dbcb28a
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/5dbcb28a
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/5dbcb28a

Branch: refs/heads/feature/autoscaling
Commit: 5dbcb28acca4a795b04a9a3ea1e6497b58e10114
Parents: 57f7493
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:49:16 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/5dbcb28a/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));