From 0c2371cba9973c67259612e648b5258159ebd4f3 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Wed, 4 May 2022 17:44:50 +0100 Subject: [PATCH] tests: typo in tests and redundant tc (#13931) --- tests/library/global-fetch.spec.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/library/global-fetch.spec.ts b/tests/library/global-fetch.spec.ts index 7e633d0b5e..3cff96d81f 100644 --- a/tests/library/global-fetch.spec.ts +++ b/tests/library/global-fetch.spec.ts @@ -212,8 +212,6 @@ it('should return empty body', async ({ playwright, server }) => { expect(body.length).toBe(0); expect(await response.text()).toBe(''); await request.dispose(); - const error = await response.body().catch(e => e); - expect(error.message).toContain('Response has been disposed'); }); it('should abort requests when context is disposed', async ({ playwright, server }) => { @@ -249,7 +247,7 @@ it('should abort redirected requests when context is disposed', async ({ playwri await connectionClosed; }); -it('should remove content-length from reidrected post requests', async ({ playwright, server }) => { +it('should remove content-length from redirected post requests', async ({ playwright, server }) => { server.setRedirect('/redirect', '/empty.html'); const request = await playwright.request.newContext(); const [result, req1, req2] = await Promise.all([