mirror of https://github.com/apache/lucene.git
SOLR-10796: fix failing stats tests by starting with an empty index.
This commit is contained in:
parent
57f7493c1a
commit
5dbcb28acc
|
@ -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));
|
||||||
|
|
Loading…
Reference in New Issue