From dee0f2791e137d63ef4c324deebc228169fa4fad Mon Sep 17 00:00:00 2001 From: Dmitry Gozman Date: Tue, 2 May 2023 17:40:10 -0700 Subject: [PATCH] test: unflake "should give enough time for fixture teardown" (#22763) --- tests/playwright-test/fixture-errors.spec.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/playwright-test/fixture-errors.spec.ts b/tests/playwright-test/fixture-errors.spec.ts index 9dd7c11b1d..f776ae48c8 100644 --- a/tests/playwright-test/fixture-errors.spec.ts +++ b/tests/playwright-test/fixture-errors.spec.ts @@ -415,19 +415,19 @@ test('should give enough time for fixture teardown', async ({ runInlineTest }) = fixture: async ({ }, use) => { await use(); console.log('\\n%%teardown start'); - await new Promise(f => setTimeout(f, 800)); + await new Promise(f => setTimeout(f, 2000)); console.log('\\n%%teardown finished'); }, }); test('fast enough but close', async ({ fixture }) => { - test.setTimeout(1000); - await new Promise(f => setTimeout(f, 800)); + test.setTimeout(3000); + await new Promise(f => setTimeout(f, 2000)); }); `, }); expect(result.exitCode).toBe(1); expect(result.failed).toBe(1); - expect(result.output).toContain('Test finished within timeout of 1000ms, but tearing down "fixture" ran out of time.'); + expect(result.output).toContain('Test finished within timeout of 3000ms, but tearing down "fixture" ran out of time.'); expect(result.outputLines).toEqual([ 'teardown start', 'teardown finished',