From 445a1e3c2828554de7ad063be69c269a50cf237e Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Mon, 6 May 2024 18:05:27 +0000 Subject: [PATCH] test: 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 223a57b5d0..0efb4bacb6 100644 --- a/tests/library/browsercontext-fetch.spec.ts +++ b/tests/library/browsercontext-fetch.spec.ts @@ -829,7 +829,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`); + })).rejects.toThrow(/(failed to decompress 'br' encoding: Error: unexpected end of file|Parse Error: Data after \`Connection: close\`)/); }); it('should dispose', async function({ context, server }) {