From 82d2ec0b2d3df09b3d124e9aa7353ff75021ac46 Mon Sep 17 00:00:00 2001 From: Dmitry Gozman Date: Thu, 29 Jul 2021 13:32:44 -0700 Subject: [PATCH] test: unflake "max-failures should stop workers" (#7918) --- tests/playwright-test/max-failures.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/playwright-test/max-failures.spec.ts b/tests/playwright-test/max-failures.spec.ts index a0bb4bd3c2..2a931d832a 100644 --- a/tests/playwright-test/max-failures.spec.ts +++ b/tests/playwright-test/max-failures.spec.ts @@ -85,7 +85,7 @@ test('max-failures should stop workers', async ({ runInlineTest }) => { 'a.spec.js': ` const { test } = pwt; test('passed', async () => { - await new Promise(f => setTimeout(f, 500)); + await new Promise(f => setTimeout(f, 2000)); }); test('failed', async () => { test.expect(1).toBe(2); @@ -98,7 +98,7 @@ test('max-failures should stop workers', async ({ runInlineTest }) => { }); test('interrupted counts as skipped', async () => { console.log('\\n%%interrupted'); - await new Promise(f => setTimeout(f, 2000)); + await new Promise(f => setTimeout(f, 5000)); }); test('skipped', async () => { console.log('\\n%%skipped');