This is an automated email from the ASF dual-hosted git repository.

desruisseaux pushed a commit to branch geoapi-4.0
in repository https://gitbox.apache.org/repos/asf/sis.git


The following commit(s) were added to refs/heads/geoapi-4.0 by this push:
     new b0f4cd9  Fix a (previously random) test parameter value for avoiding 
random test failures.
b0f4cd9 is described below

commit b0f4cd90684804f8c4da758e6eca15c1a0933958
Author: Martin Desruisseaux <[email protected]>
AuthorDate: Wed Feb 12 16:44:21 2020 +0100

    Fix a (previously random) test parameter value for avoiding random test 
failures.
---
 .../java/org/apache/sis/internal/netcdf/SatelliteGroundTrackTest.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/storage/sis-netcdf/src/test/java/org/apache/sis/internal/netcdf/SatelliteGroundTrackTest.java
 
b/storage/sis-netcdf/src/test/java/org/apache/sis/internal/netcdf/SatelliteGroundTrackTest.java
index c2fdad6..fd39239 100644
--- 
a/storage/sis-netcdf/src/test/java/org/apache/sis/internal/netcdf/SatelliteGroundTrackTest.java
+++ 
b/storage/sis-netcdf/src/test/java/org/apache/sis/internal/netcdf/SatelliteGroundTrackTest.java
@@ -47,7 +47,7 @@ public final strictfp class SatelliteGroundTrackTest extends 
MathTransformTestCa
      */
     private void createTransform() throws TransformException, FactoryException 
{
         final LocalizationGridBuilder grid = new 
LocalizationGridBuilder(WIDTH, HEIGHT);
-        final AffineTransform tr = 
AffineTransform.getRotateInstance(StrictMath.random()/2 + 0.25);     // Between 
14 and 43°.
+        final AffineTransform tr = 
AffineTransform.getRotateInstance(StrictMath.toRadians(31));
         tr.translate(-WIDTH / 2, -HEIGHT / 2);
         final double[] point = new double[2];
         for (int y=0; y<HEIGHT; y++) {

Reply via email to