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

This commit is contained in:
Steve Rowe 2017-07-11 10:48:14 -04:00
parent 57f7493c1a
commit 5dbcb28acc
1 changed files with 3 additions and 0 deletions

View File

@ -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) { 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 minMin = String.valueOf(min - Math.abs(delta*min));
String maxMin = 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)); String minMax = String.valueOf(max - Math.abs(delta*max));