From: <tho...@us...> - 2010-08-06 16:03:29
|
Revision: 3425 http://bigdata.svn.sourceforge.net/bigdata/?rev=3425&view=rev Author: thompsonbry Date: 2010-08-06 16:03:23 +0000 (Fri, 06 Aug 2010) Log Message: ----------- Increased the error bounds on one of the unit tests since the test would occasionally fail during CI builds with an error rate (.16) which was quite reasonable given the target error rate (.10). Modified Paths: -------------- trunk/bigdata/src/test/com/bigdata/concurrent/StressTestNonBlockingLockManagerWithTxDag.java Modified: trunk/bigdata/src/test/com/bigdata/concurrent/StressTestNonBlockingLockManagerWithTxDag.java =================================================================== --- trunk/bigdata/src/test/com/bigdata/concurrent/StressTestNonBlockingLockManagerWithTxDag.java 2010-08-06 15:59:39 UTC (rev 3424) +++ trunk/bigdata/src/test/com/bigdata/concurrent/StressTestNonBlockingLockManagerWithTxDag.java 2010-08-06 16:03:23 UTC (rev 3425) @@ -234,7 +234,7 @@ final int nhorriddeath = Integer.parseInt(result.get("nhorriddeath")); - // all tasks were either successfull or a died a horrid death. + // all tasks were either successful or a died a horrid death. assertEquals(ntasks, nsuccess + nhorriddeath); /* @@ -243,9 +243,14 @@ * scheduled to die is random. */ final double actualErrorRate = nhorriddeath / (double) ntasks; - + + /* + * Note: I've increased the upper bound on the allowed error rate a bit + * since the CI builds were occasionally failing this with an actual + * error rate which was quite reasonable, e.g., .16. + */ if ((actualErrorRate < expectedErrorRate - .05) - || (actualErrorRate > expectedErrorRate + .05)) { + || (actualErrorRate > expectedErrorRate + .1)) { fail("error rate: expected=" + expectedErrorRate + ", actual=" + actualErrorRate); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |