Bug 1396648: Bump response interval to avoid intermittents. r=trivial,test-only
authorKris Maglione <maglione.k@gmail.com>
Thu, 07 Sep 2017 15:59:03 -0700
changeset 429124 c520f2bafff54a631a74067c7f1b463300d86900
parent 429123 036f4ab0f2e91848d7e1b7a1497f17a8bca4e940
child 429125 4fc17394d14079299c88d7f53ea36b36ce9164a9
push id7761
push userjlund@mozilla.com
push dateFri, 15 Sep 2017 00:19:52 +0000
treeherdermozilla-beta@c38455951db4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstrivial, test-only
bugs1396648
milestone57.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1396648: Bump response interval to avoid intermittents. r=trivial,test-only MozReview-Commit-ID: FSYVT848TES
toolkit/components/extensions/test/mochitest/slow_response.sjs
toolkit/components/extensions/test/mochitest/test_ext_webrequest_responseBody.html
--- a/toolkit/components/extensions/test/mochitest/slow_response.sjs
+++ b/toolkit/components/extensions/test/mochitest/slow_response.sjs
@@ -4,17 +4,17 @@
 
 /* eslint-disable no-unused-vars */
 
 const Cu = Components.utils;
 const Ci = Components.interfaces;
 
 Cu.import("resource://gre/modules/AppConstants.jsm");
 
-const DELAY = AppConstants.DEBUG ? 2000 : 500;
+const DELAY = AppConstants.DEBUG ? 4000 : 800;
 
 let nsTimer = Components.Constructor("@mozilla.org/timer;1", "nsITimer", "initWithCallback");
 
 let timer;
 function delay() {
   return new Promise(resolve => {
     timer = nsTimer(resolve, DELAY, Ci.nsITimer.TYPE_ONE_SHOT);
   });
--- a/toolkit/components/extensions/test/mochitest/test_ext_webrequest_responseBody.html
+++ b/toolkit/components/extensions/test/mochitest/test_ext_webrequest_responseBody.html
@@ -31,17 +31,17 @@ const PARTS = [
   "Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. <br>",
   "Excepteur sint occaecat cupidatat non proident, <br>",
   "sunt in culpa qui officia deserunt mollit anim id est laborum.<br>",
   `
     </body>
     </html>`,
 ].map(part => `${part}\n`);
 
-const TIMEOUT = AppConstants.DEBUG ? 2000 : 500;
+const TIMEOUT = AppConstants.DEBUG ? 4000 : 800;
 const TASKS = [
   {
     url: "slow_response.sjs",
     task(filter, resolve, num) {
       let decoder = new TextDecoder("utf-8");
 
       browser.test.assertEq("uninitialized", filter.status,
                             `(${num}): Got expected initial status`);