Apache Lucene open-source search software
SOLR-11345: TestPointFields.doTestDoublePointFunctionQuery() helper: fix generated # of values (was 10, should be 'numVals')
Steve Rowe0359db97b5f3
diff --git a/solr/core/src/test/org/apache/solr/schema/TestPointFields.java b/solr/core/src/test/org/apache/solr/schema/TestPointFields.javaindex 703ddd884b5..34c48e6bad2 100644--- a/solr/core/src/test/org/apache/solr/schema/TestPointFields.java+++ b/solr/core/src/test/org/apache/solr/schema/TestPointFields.java@@ -3331,7 +3331,7 @@ public class TestPointFields extends SolrTestCaseJ4 {assertTrue(h.getCore().getLatestSchema().getField(field).getType() instanceof PointField);int numVals = 10 * RANDOM_MULTIPLIER;// Restrict values to float range; otherwise conversion to float will cause truncation -> undefined results- List<Double> values = getRandomList(10, false, () -> {+ List<Double> values = getRandomList(numVals, false, () -> {Float f = Float.NaN;while (f.isNaN()) {f = Float.intBitsToFloat(random().nextInt());