diff options
author | Mathieu Chartier <mathieuc@google.com> | 2015-01-13 10:45:52 -0800 |
---|---|---|
committer | Mathieu Chartier <mathieuc@google.com> | 2015-01-13 10:57:10 -0800 |
commit | 0311cd2be856e4c5872ebbe5ac7e12eac334ad73 (patch) | |
tree | b2dd014e3d85a151cced48b4337d7b07410b7172 /harmony-tests/src/test | |
parent | 3a1658cb79ccc96e81eca64966de4ada725a2e54 (diff) | |
download | libcore-0311cd2be856e4c5872ebbe5ac7e12eac334ad73.zip libcore-0311cd2be856e4c5872ebbe5ac7e12eac334ad73.tar.gz libcore-0311cd2be856e4c5872ebbe5ac7e12eac334ad73.tar.bz2 |
Increase ThreadTest tolerance
Aims to fix flaky test.
Decreased minimum from 90% to 80%.
Increased maximum from 110% to 120%.
Increased maximum waitMillis from 10ms to 30ms.
Bug: 18788389
Change-Id: I92477225492712448b0a78354730a037e2dda1a1
Diffstat (limited to 'harmony-tests/src/test')
-rw-r--r-- | harmony-tests/src/test/java/org/apache/harmony/tests/org/apache/harmony/kernel/dalvik/ThreadsTest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/harmony-tests/src/test/java/org/apache/harmony/tests/org/apache/harmony/kernel/dalvik/ThreadsTest.java b/harmony-tests/src/test/java/org/apache/harmony/tests/org/apache/harmony/kernel/dalvik/ThreadsTest.java index 19c6229..c971e99 100644 --- a/harmony-tests/src/test/java/org/apache/harmony/tests/org/apache/harmony/kernel/dalvik/ThreadsTest.java +++ b/harmony-tests/src/test/java/org/apache/harmony/tests/org/apache/harmony/kernel/dalvik/ThreadsTest.java @@ -234,10 +234,10 @@ public class ThreadsTest extends TestCase { * Allow a bit more slop for the maximum on "expected * instantaneous" results. */ - long minimum = (long) ((double) expectedMillis * 0.90); + long minimum = (long) ((double) expectedMillis * 0.80); long maximum = - Math.max((long) ((double) expectedMillis * 1.10), 10); - long waitMillis = Math.max(expectedMillis * 10, 10); + Math.max((long) ((double) expectedMillis * 1.20), 10); + long waitMillis = Math.max(expectedMillis * 10, 30); long duration = getDurationMillis(waitMillis); if (duration < minimum) { |