Bug 1396612: Increase non-debug response part delay. r=trivial,test-only
authorKris Maglione <maglione.k@gmail.com>
Mon, 04 Sep 2017 13:00:25 -0700
changeset 378879 8b92938b98d9a4830afe4e7e280bd00727c29e58
parent 378878 9b9159079eea2092d5914e8f263135a79e92cfe5
child 378880 76834322c5a8ccd7ab9cc63f79abe34b8dba2ba0
push id32443
push userarchaeopteryx@coole-files.de
push dateTue, 05 Sep 2017 09:41:20 +0000
treeherdermozilla-central@3ecda4678c49 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstrivial, test-only
bugs1396612
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 1396612: Increase non-debug response part delay. r=trivial,test-only MozReview-Commit-ID: ERXLi5RJwtc
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 : 200;
+const DELAY = AppConstants.DEBUG ? 2000 : 500;
 
 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 : 200;
+const TIMEOUT = AppConstants.DEBUG ? 2000 : 500;
 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`);