test: adjust expectation

This commit is contained in:
Max Schmitt 2024-05-06 18:05:27 +00:00
parent 08523c724a
commit 445a1e3c28

View file

@ -829,7 +829,7 @@ it('should not hang on a brotli encoded Range request', async ({ context, server
headers: { headers: {
range: 'bytes=0-2', 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 }) { it('should dispose', async function({ context, server }) {