Bug 1533111 - Wait after opening aboutdebugging in multie10s test to avoid timeouts. r=daisuke, a=test-only
authorJulian Descottes <jdescottes@mozilla.com>
Tue, 04 Jun 2019 08:28:37 +0000
changeset 536664 3948f5bbc3376fa91c06ace31d14acc467f8f712
parent 536663 2f98ca4e0be4a8674a77945d641d3af599aa212a
child 536665 dec8636459942b964a342940d2e151af05be5484
push id2082
push userffxbld-merge
push dateMon, 01 Jul 2019 08:34:18 +0000
treeherdermozilla-release@2fb19d0466d2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdaisuke, test-only
bugs1533111
milestone68.0
Bug 1533111 - Wait after opening aboutdebugging in multie10s test to avoid timeouts. r=daisuke, a=test-only Differential Revision: https://phabricator.services.mozilla.com/D33480
devtools/client/aboutdebugging-new/test/browser/browser_aboutdebugging_serviceworker_multie10s.js
--- a/devtools/client/aboutdebugging-new/test/browser/browser_aboutdebugging_serviceworker_multie10s.js
+++ b/devtools/client/aboutdebugging-new/test/browser/browser_aboutdebugging_serviceworker_multie10s.js
@@ -32,16 +32,21 @@ add_task(async function() {
 });
 
 async function testDebuggingSW(enableMultiE10sFn, disableMultiE10sFn) {
   // enable service workers
   await pushPref("dom.serviceWorkers.testing.enabled", true);
 
   const { document, tab, window } =
     await openAboutDebugging({ enableWorkerUpdates: true });
+
+  // If the test starts too quickly, the test will timeout on some platforms.
+  // See Bug 1533111.
+  await wait(1000);
+
   await selectThisFirefoxPage(document, window.AboutDebugging.store);
 
   // disable multi e10s
   info("Disabling multi e10s");
   await disableMultiE10sFn();
 
   // Open a tab that registers a push service worker.
   const swTab = await addTab(TAB_URL);