Bug 1193023 - Intermittent fix, be more lenient on tick count for framerate actor tests. r=vp, a=test-only
authorJordan Santell <jsantell@mozilla.com>
Sun, 16 Aug 2015 14:06:04 -0400
changeset 288904 51aca28acd76cd6de550ee870908d5ac2e97ed98
parent 288903 eccb9eac6d168e39f7756927403325c5fddc83f2
child 288905 5b295583cfc163188107da3a7d40600e521705d7
push id5067
push userraliiev@mozilla.com
push dateMon, 21 Sep 2015 14:04:52 +0000
treeherdermozilla-beta@14221ffe5b2f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvp, test-only
bugs1193023
milestone42.0a2
Bug 1193023 - Intermittent fix, be more lenient on tick count for framerate actor tests. r=vp, a=test-only
toolkit/devtools/server/tests/mochitest/test_framerate_06.html
--- a/toolkit/devtools/server/tests/mochitest/test_framerate_06.html
+++ b/toolkit/devtools/server/tests/mochitest/test_framerate_06.html
@@ -60,17 +60,17 @@ window.onload = function() {
       info(curr + " - " + (curr - prev));
     }
 
     // 1000 / 60 => 16.666... so we shouldn't get more than diffs of 16.66.. but
     // when we get ticks from other frames they're usually at diffs of < 1. Sometimes
     // ticks can still be less than 16ms even on one frame (usually following a very slow
     // frame), so use a low number (2) to be our threshold
     var THRESHOLD = 2;
-    ok(ticks.length >= 60, "we should have 2 seconds worth of ticks, atleast 60 ticks");
+    ok(ticks.length >= 20, "we should have atleast 20 ticks over the course of two seconds.");
     var belowThreshold = diffs.filter(v => v <= THRESHOLD);
     ok(belowThreshold.length <= 10, "we should have very few frames less than the threshold");
 
     client.close(() => {
       DebuggerServer.destroy();
       SimpleTest.finish()
     });
   }