From 1699f2bb63507ecc544661d843a2fcbda119250d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20C=C3=A1ceres?= Date: Mon, 27 Aug 2018 21:47:00 +0300 Subject: [PATCH] Bug 1484864 - Intermittent tier 2 test-verify dom/payments/test/browser_payment_in_different_tabs.js r=edenchuang --- dom/payments/test/browser_payment_in_different_tabs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dom/payments/test/browser_payment_in_different_tabs.js b/dom/payments/test/browser_payment_in_different_tabs.js index 5cc68b65a486..c811d32dd26e 100644 --- a/dom/payments/test/browser_payment_in_different_tabs.js +++ b/dom/payments/test/browser_payment_in_different_tabs.js @@ -29,9 +29,9 @@ add_task(async () => { payments.add(payment); } is(payments.size, TABS_TO_OPEN, `Should be ${TABS_TO_OPEN} unique objects.`); - tabs.forEach(async tab => { + for (const tab of tabs) { await TestUtils.waitForTick(); BrowserTestUtils.removeTab(tab); - }); + } Services.prefs.setBoolPref("dom.payments.request.enabled", false); });