try 6000ms timeout draft
authorSean Feng <sefeng@mozilla.com>
Tue, 03 Dec 2019 17:53:04 -0500
changeset 2516020 390cf317c72f3179de154e2bc4876f67e6c56149
parent 2513322 0dd50130b1248bd37f8adf0ded96560f2d272d4e
child 2516021 4ab9405c1c384afce6f6ff9e8e27f47fab2825dd
push id460092
push usersefeng@mozilla.com
push dateWed, 04 Dec 2019 16:52:29 +0000
treeherdertry@4ab9405c1c38 [default view] [failures only]
milestone72.0a1
try 6000ms timeout
browser/modules/test/browser/browser_Telemetry_numberOfSiteOrigins.js
--- a/browser/modules/test/browser/browser_Telemetry_numberOfSiteOrigins.js
+++ b/browser/modules/test/browser/browser_Telemetry_numberOfSiteOrigins.js
@@ -32,18 +32,23 @@ add_task(async function test_telemetryMo
   });
 
   let newTab2 = await BrowserTestUtils.openNewForegroundTab({
     gBrowser,
     opening: gTestRoot + "contain_iframe.html",
     waitForStateStop: true,
   });
 
+  await ContentTask.spawn(newTab2.linkedBrowser, null, async function() {
+    await ContentTaskUtils.waitForCondition(() => !content.document.hidden);
+  });
+
   await new Promise(resolve =>
     setTimeout(function() {
       window.requestIdleCallback(resolve);
-    }, 0)
+    }, 6000)
   );
 
+
   TelemetryTestUtils.assertHistogram(histogram, 2, 1);
   await BrowserTestUtils.removeTab(newTab1);
   await BrowserTestUtils.removeTab(newTab2);
 });