Bug 1494941 - Fix browser_jsterm_await_helper_dollar_underscore.js intermittent; r=Honza.
authorNicolas Chevobbe <nchevobbe@mozilla.com>
Tue, 08 Jan 2019 13:31:57 +0000
changeset 509989 260b51e1a20253de6ef976d96a5d8986809c186d
parent 509988 142e5073a1e799f56624a5ebeb9cd4ae7b9935b2
child 509990 2482a109b0e28dacfe015fd8e4095b3c62a1ec00
push id10547
push userffxbld-merge
push dateMon, 21 Jan 2019 13:03:58 +0000
treeherdermozilla-beta@24ec1916bffe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersHonza
bugs1494941
milestone66.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 1494941 - Fix browser_jsterm_await_helper_dollar_underscore.js intermittent; r=Honza. Differential Revision: https://phabricator.services.mozilla.com/D15838
devtools/client/webconsole/test/mochitest/browser_jsterm_await_helper_dollar_underscore.js
--- a/devtools/client/webconsole/test/mochitest/browser_jsterm_await_helper_dollar_underscore.js
+++ b/devtools/client/webconsole/test/mochitest/browser_jsterm_await_helper_dollar_underscore.js
@@ -60,23 +60,23 @@ async function performTests() {
 
   await executeAndWaitForResultMessage(
     `$_`,
     `Array(5) [ 1, 2, 3, 4, 5 ]`
   );
   ok(true, "$_ wasn't re-assigned");
 
   info("Check that $_ gets the value of the last resolved await expression");
-  const delays = [1000, 500, 2000, 1500];
+  const delays = [2000, 1000, 4000, 3000];
   const inputs = delays.map(delay => `await new Promise(
     r => setTimeout(() => r("await-concurrent-" + ${delay}), ${delay}))`);
 
-  // Let's wait for the message that sould be displayed last.
-  const onMessage = waitForMessage(hud, "await-concurrent-2000", ".message.result");
+  // Let's wait for the message that should be displayed last.
+  const onMessage = waitForMessage(hud, "await-concurrent-4000", ".message.result");
   for (const input of inputs) {
     jsterm.execute(input);
   }
   await onMessage;
 
   await executeAndWaitForResultMessage(`"result: " + $_`,
-    `"result: await-concurrent-2000"`);
+    `"result: await-concurrent-4000"`);
   ok(true, "$_ was replaced with the last resolving top-level await evaluation result");
 }