Bug 1193023 - Intermittent fix, be more lenient on tick count for framerate actor tests. r=vp
authorJordan Santell <jsantell@mozilla.com>
Sun, 16 Aug 2015 14:06:04 -0400
changeset 285585 cc3c25bf13e2ea026e336e3eab941f18348d8208
parent 285584 6abcc952af87a3bb7e7954e31ce9b5a186daa799
child 285586 5d4ae7b9e9d39ca80121bbd5864694dfa61db8dd
push id4466
push usernalexander@mozilla.com
push dateMon, 17 Aug 2015 16:51:24 +0000
reviewersvp
bugs1193023
milestone43.0a1
Bug 1193023 - Intermittent fix, be more lenient on tick count for framerate actor tests. r=vp
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()
     });
   }