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:38:22 UTC

lucene-solr:master: LUCENE-8107: Fix test to not pick too large a distance. Committed on behalf of Ignacio Vera.

Repository: lucene-solr
Updated Branches:
  refs/heads/master 6dd9dbf27 -> bdfbe433a


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/bdfbe433
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/bdfbe433
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/bdfbe433

Branch: refs/heads/master
Commit: bdfbe433a35f359b26fe20cb310150bc3d2b2da1
Parents: 6dd9dbf
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:38:13 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/bdfbe433/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);