Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: s390x z15 accelerated zlib fixes #44117

Merged
merged 1 commit into from
Aug 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/parallel/test-zlib-dictionary-fail.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const input = Buffer.from([0x78, 0xBB, 0x04, 0x09, 0x01, 0xA5]);
stream.on('error', common.mustCall(function(err) {
// It's not possible to separate invalid dict and invalid data when using
// the raw format
assert.match(err.message, /invalid/);
assert.match(err.message, /(invalid|Operation-Ending-Supplemental Code is 0x12)/);
}));

stream.write(input);
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-zlib-flush-drain-longblock.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ zipper.write('A'.repeat(17000));
zipper.flush();

let received = 0;
unzipper.on('data', common.mustCall((d) => {
unzipper.on('data', common.mustCallAtLeast((d) => {
received += d.length;
}, 2));

Expand Down
4 changes: 3 additions & 1 deletion test/parallel/test-zlib-from-string.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ const expectedBase64Gzip = 'H4sIAAAAAAAAA11RS05DMQy8yhzg6d2BPSAkJPZu4laWkjiN4' +
'sHnHNzRtagj5AQAA';

zlib.deflate(inputString, common.mustCall((err, buffer) => {
assert.strictEqual(buffer.toString('base64'), expectedBase64Deflate);
zlib.inflate(buffer, common.mustCall((err, inflated) => {
assert.strictEqual(inflated.toString(), inputString);
}));
}));

zlib.gzip(inputString, common.mustCall((err, buffer) => {
Expand Down