Skip to content

Commit

Permalink
Merge pull request #2672 from cloudflare/yagiz/enable-zlib-test
Browse files Browse the repository at this point in the history
enable zlib test
  • Loading branch information
anonrig authored Sep 9, 2024
2 parents d440704 + 2c4ff6e commit 962b5f7
Showing 1 changed file with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions src/workerd/api/node/tests/zlib-nodejs-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2272,25 +2272,24 @@ export const brotli = {
}
);

//TODO(soon): enable this test. We don't throw anything in this situation unfortunately
// {
// assert.throws(
// () => {
// zlib.createBrotliCompress({
// params: {
// // This is a boolean flag
// [zlib.constants.BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING]:
// 42,
// },
// });
// },
// {
// code: 'ERR_ZLIB_INITIALIZATION_FAILED',
// name: 'Error',
// message: 'Initialization failed',
// }
// );
// }
{
assert.throws(
() => {
zlib.createBrotliCompress({
params: {
// This is a boolean flag
[zlib.constants.BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING]:
42,
},
});
},
{
code: 'ERR_ZLIB_INITIALIZATION_FAILED',
name: 'Error',
message: 'Initialization failed',
}
);
}

{
// Test options.flush range
Expand Down

0 comments on commit 962b5f7

Please # to comment.