Bug 1393402 - Fix intermittent by removing early testing timeout. r=mixedpuppy, a=test-only
authorShane Caraveo <scaraveo@mozilla.com>
Sun, 03 Sep 2017 18:09:43 -0700
changeset 421557 569cb400470af584fd505e82a005e7c411b0422f
parent 421556 8bdd1bbd948f52e7b5f3ab2c1168fece0ee14377
child 421558 ba89ef7040e03c1c6e92a4adeeac0903124d6c80
push id7717
push userryanvm@gmail.com
push dateTue, 05 Sep 2017 22:40:57 +0000
treeherdermozilla-beta@e0216397b51a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmixedpuppy, test-only
bugs1393402
milestone56.0
Bug 1393402 - Fix intermittent by removing early testing timeout. r=mixedpuppy, a=test-only MozReview-Commit-ID: AAnS9cXlTz0
toolkit/components/extensions/test/mochitest/test_ext_redirect_jar.html
--- a/toolkit/components/extensions/test/mochitest/test_ext_redirect_jar.html
+++ b/toolkit/components/extensions/test/mochitest/test_ext_redirect_jar.html
@@ -54,17 +54,16 @@ function getExtension() {
       async function testSubFrameResource(tabId, code) {
         let [result] = await browser.tabs.executeScript(tabId, {code: `
           new Promise(resolve => {
             var s = document.createElement('iframe');
             s.src = "/intercept?r=" + Math.random();
             s.onload = () => resolve(['loaded', s.contentWindow.location.href]);
             s.onerror = () => resolve(['error']);
             document.documentElement.appendChild(s);
-            setTimeout(() => resolve(['timed_out']), 5000);
           });`,
         });
         return result;
       }
 
       let tab = await browser.tabs.create({url: "http://mochi.test:8888/tests/toolkit/components/extensions/test/mochitest/file_sample.html"});
       let result = await testSubFrameResource(tab.id);
       browser.test.assertEq("loaded", result[0], "frame 1 loaded");