From 359973686531e84238415d1ea46c1ab1b02b28b5 Mon Sep 17 00:00:00 2001 From: Gilles Sadowski Date: Mon, 31 May 2021 13:03:34 +0200 Subject: [PATCH] Reduce build failure frequency due to randomized unit tests. --- commons-math-legacy/pom.xml | 2 +- .../fitting/leastsquares/LevenbergMarquardtOptimizerTest.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/commons-math-legacy/pom.xml b/commons-math-legacy/pom.xml index 5c2e0c820..e36a98ced 100644 --- a/commons-math-legacy/pom.xml +++ b/commons-math-legacy/pom.xml @@ -133,7 +133,7 @@ maven-surefire-plugin - 4 + 5 diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/fitting/leastsquares/LevenbergMarquardtOptimizerTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/fitting/leastsquares/LevenbergMarquardtOptimizerTest.java index e2270c335..5f6b2e32a 100644 --- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/fitting/leastsquares/LevenbergMarquardtOptimizerTest.java +++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/fitting/leastsquares/LevenbergMarquardtOptimizerTest.java @@ -274,8 +274,8 @@ public class LevenbergMarquardtOptimizerTest final double[] asymptoticStandardErrorFound = optimum.getSigma(1e-14).toArray(); // Check that the parameters are found within the assumed error bars. - Assert.assertEquals(xCenter, paramFound[0], 1.5 * asymptoticStandardErrorFound[0]); - Assert.assertEquals(yCenter, paramFound[1], 1.5 * asymptoticStandardErrorFound[1]); + Assert.assertEquals(xCenter, paramFound[0], 2 * asymptoticStandardErrorFound[0]); + Assert.assertEquals(yCenter, paramFound[1], 2 * asymptoticStandardErrorFound[1]); Assert.assertEquals(radius, paramFound[2], asymptoticStandardErrorFound[2]); }