Bug 1494941 - Fix browser_jsterm_await_helper_dollar_underscore.js intermittent. r=Honza, a=test-only
authorNicolas Chevobbe <nchevobbe@mozilla.com>
Tue, 08 Jan 2019 13:31:57 +0000
changeset 509356 8d881ce4d5d3f56d85614d7fca672a8f09eb96c1
parent 509355 3b5f78d0f03e234565a4febb1cfafc23e8f40443
child 509357 9c32ca6e7f263287821ee5f771c78cde80df8eff
push id1905
push userffxbld-merge
push dateMon, 21 Jan 2019 12:33:13 +0000
treeherdermozilla-release@c2fca1944d8c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersHonza, test-only
bugs1494941
milestone65.0
Bug 1494941 - Fix browser_jsterm_await_helper_dollar_underscore.js intermittent. r=Honza, a=test-only 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");
 }