Reduce build failure frequency due to randomized unit tests.

This commit is contained in:
Gilles Sadowski 2021-05-31 13:03:34 +02:00
parent 2588814c82
commit 3599736865
2 changed files with 3 additions and 3 deletions

View File

@ -133,7 +133,7 @@
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<rerunFailingTestsCount>4</rerunFailingTestsCount>
<rerunFailingTestsCount>5</rerunFailingTestsCount>
</configuration>
</plugin>
</plugins>

View File

@ -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]);
}