You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by kw...@apache.org on 2018/01/02 11:39:31 UTC
lucene-solr:branch_6x: LUCENE-8107: Fix test to not pick too large a
distance. Committed on behalf of Ignacio Vera.
Repository: lucene-solr
Updated Branches:
refs/heads/branch_6x f64d74217 -> b190877d5
LUCENE-8107: Fix test to not pick too large a distance. Committed on behalf of Ignacio Vera.
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/b190877d
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/b190877d
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/b190877d
Branch: refs/heads/branch_6x
Commit: b190877d5f67ba4cecc4198a3daf22e1a79932a8
Parents: f64d742
Author: Karl Wright <Da...@gmail.com>
Authored: Tue Jan 2 06:38:13 2018 -0500
Committer: Karl Wright <Da...@gmail.com>
Committed: Tue Jan 2 06:39:25 2018 -0500
----------------------------------------------------------------------
.../test/org/apache/lucene/spatial3d/geom/GeoExactCircleTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b190877d/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/geom/GeoExactCircleTest.java
----------------------------------------------------------------------
diff --git a/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/geom/GeoExactCircleTest.java b/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/geom/GeoExactCircleTest.java
index 6f96214..74a229e 100644
--- a/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/geom/GeoExactCircleTest.java
+++ b/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/geom/GeoExactCircleTest.java
@@ -104,7 +104,7 @@ public class GeoExactCircleTest extends RandomGeo3dShapeGenerator{
}
} while (Math.abs(planetModel.flattening) > 0.4);
GeoPoint center = randomGeoPoint(planetModel);
- double radius = random().nextDouble() * 0.9 * Math.PI;
+ double radius = random().nextDouble() * 0.9 * planetModel.minimumPoleDistance;
checkBearingPoint(planetModel, center, radius, 0);
checkBearingPoint(planetModel, center, radius, 0.5 * Math.PI);
checkBearingPoint(planetModel, center, radius, Math.PI);