Author: luc
Date: Sun Apr  3 14:33:00 2011
New Revision: 1088315

URL: http://svn.apache.org/viewvc?rev=1088315&view=rev
Log:
allow 3 retries for testNextHex which is expected to randomly fail with low 
probability

Modified:
    
commons/proper/math/trunk/src/test/java/org/apache/commons/math/random/RandomDataTest.java

Modified: 
commons/proper/math/trunk/src/test/java/org/apache/commons/math/random/RandomDataTest.java
URL: 
http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/random/RandomDataTest.java?rev=1088315&r1=1088314&r2=1088315&view=diff
==============================================================================
--- 
commons/proper/math/trunk/src/test/java/org/apache/commons/math/random/RandomDataTest.java
 (original)
+++ 
commons/proper/math/trunk/src/test/java/org/apache/commons/math/random/RandomDataTest.java
 Sun Apr  3 14:33:00 2011
@@ -22,6 +22,7 @@ import java.util.HashSet;
 import java.util.List;
 
 
+import org.apache.commons.math.Retry;
 import org.apache.commons.math.RetryRunner;
 import org.apache.commons.math.TestUtils;
 import org.apache.commons.math.distribution.BetaDistributionImpl;
@@ -395,6 +396,7 @@ public class RandomDataTest {
 
     /** test dispersion and failure modes for nextHex() */
     @Test
+    @Retry(3)
     public void testNextHex() {
         try {
             randomData.nextHexString(-1);


Reply via email to