You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by er...@apache.org on 2021/05/31 12:39:21 UTC
[commons-math] 02/03: Reduce build failure frequency due to
randomized unit tests.
This is an automated email from the ASF dual-hosted git repository.
erans pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git
commit 359973686531e84238415d1ea46c1ab1b02b28b5
Author: Gilles Sadowski <gi...@gmail.com>
AuthorDate: Mon May 31 13:03:34 2021 +0200
Reduce build failure frequency due to randomized unit tests.
---
commons-math-legacy/pom.xml | 2 +-
.../legacy/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 5c2e0c8..e36a98c 100644
--- a/commons-math-legacy/pom.xml
+++ b/commons-math-legacy/pom.xml
@@ -133,7 +133,7 @@
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
- <rerunFailingTestsCount>4</rerunFailingTestsCount>
+ <rerunFailingTestsCount>5</rerunFailingTestsCount>
</configuration>
</plugin>
</plugins>
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 e2270c3..5f6b2e3 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]);
}