From e856344235f4f2de66dbe3f93960ef2f8ec7faa3 Mon Sep 17 00:00:00 2001 From: Dmitry Gozman Date: Fri, 17 Mar 2023 13:33:44 -0700 Subject: [PATCH] chore: increase timeout for flaky "should stop tracing on requestContext.dispose()" (#21767) --- tests/playwright-test/playwright.fetch.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/playwright-test/playwright.fetch.spec.ts b/tests/playwright-test/playwright.fetch.spec.ts index 782ce9a950..540413aeef 100644 --- a/tests/playwright-test/playwright.fetch.spec.ts +++ b/tests/playwright-test/playwright.fetch.spec.ts @@ -51,7 +51,7 @@ test('should use baseURL in request fixture', async ({ runInlineTest, server }) expect(result.passed).toBe(1); }); -test('should stop tracing on requestContex.dispose()', async ({ runInlineTest, server }) => { +test('should stop tracing on requestContext.dispose()', async ({ runInlineTest, server }) => { server.setRoute('/slow', (req, resp) => { resp.writeHead(200, { 'Content-Type': 'text/plain; charset=utf-8', @@ -59,7 +59,7 @@ test('should stop tracing on requestContex.dispose()', async ({ runInlineTest, s }); setTimeout(() => { resp.end('Hi!'); - }, 500); + }, 5000); }); const result = await runInlineTest({ 'playwright.config.ts': ` @@ -79,7 +79,7 @@ test('should stop tracing on requestContex.dispose()', async ({ runInlineTest, s await request.get('${server.PREFIX}/slow'); }); `, - }, { workers: 1, timeout: 1000 }); + }, { workers: 1, timeout: 3000 }); expect(result.output).not.toContain('ENOENT'); expect(result.exitCode).toBe(1); expect(result.failed).toBe(1);