From ce877e8732f93773efa28cf7beed610c97bbc837 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Tue, 25 Jun 2024 13:45:30 +0200 Subject: [PATCH] adjust expectation --- tests/library/browsercontext-fetch.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/library/browsercontext-fetch.spec.ts b/tests/library/browsercontext-fetch.spec.ts index 550cc56d74..f8c0327c7d 100644 --- a/tests/library/browsercontext-fetch.spec.ts +++ b/tests/library/browsercontext-fetch.spec.ts @@ -853,7 +853,7 @@ it('should not hang on a brotli encoded Range request', async ({ context, server headers: { range: 'bytes=0-2', }, - })).rejects.toThrow(/(failed to decompress 'br' encoding: Error: unexpected end of file|Parse Error: Data after \`Connection: close\`)/); + })).rejects.toThrow(/Parse Error: Expected HTTP/); }); it('should dispose', async function({ context, server }) {