Reduce build failure frequency due to randomized unit tests.
This commit is contained in:
parent
2588814c82
commit
3599736865
|
@ -133,7 +133,7 @@
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-surefire-plugin</artifactId>
|
<artifactId>maven-surefire-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
<rerunFailingTestsCount>4</rerunFailingTestsCount>
|
<rerunFailingTestsCount>5</rerunFailingTestsCount>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
|
|
|
@ -274,8 +274,8 @@ public class LevenbergMarquardtOptimizerTest
|
||||||
final double[] asymptoticStandardErrorFound = optimum.getSigma(1e-14).toArray();
|
final double[] asymptoticStandardErrorFound = optimum.getSigma(1e-14).toArray();
|
||||||
|
|
||||||
// Check that the parameters are found within the assumed error bars.
|
// Check that the parameters are found within the assumed error bars.
|
||||||
Assert.assertEquals(xCenter, paramFound[0], 1.5 * asymptoticStandardErrorFound[0]);
|
Assert.assertEquals(xCenter, paramFound[0], 2 * asymptoticStandardErrorFound[0]);
|
||||||
Assert.assertEquals(yCenter, paramFound[1], 1.5 * asymptoticStandardErrorFound[1]);
|
Assert.assertEquals(yCenter, paramFound[1], 2 * asymptoticStandardErrorFound[1]);
|
||||||
Assert.assertEquals(radius, paramFound[2], asymptoticStandardErrorFound[2]);
|
Assert.assertEquals(radius, paramFound[2], asymptoticStandardErrorFound[2]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue