You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ab...@apache.org on 2017/09/20 08:46:47 UTC
[31/50] lucene-solr:jira/solr-11285: SOLR-11345:
TestPointFields.doTestDoublePointFunctionQuery() helper: fix generated # of
values (was 10, should be 'numVals')
SOLR-11345: TestPointFields.doTestDoublePointFunctionQuery() helper: fix generated # of values (was 10, should be 'numVals')
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/0359db97
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/0359db97
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/0359db97
Branch: refs/heads/jira/solr-11285
Commit: 0359db97b5f3b045abfc12cbc118b99196911169
Parents: fe34e14
Author: Steve Rowe <sa...@gmail.com>
Authored: Mon Sep 11 12:35:08 2017 -0400
Committer: Steve Rowe <sa...@gmail.com>
Committed: Mon Sep 11 12:35:08 2017 -0400
----------------------------------------------------------------------
solr/core/src/test/org/apache/solr/schema/TestPointFields.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/0359db97/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 703ddd8..34c48e6 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());