GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: s390x z15 accelerated zlib fixes · nodejs/node@1598894

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/parallel
    • test-zlib-dictionary-fail.js
    • test-zlib-flush-drain-longblock.js
    • test-zlib-from-string.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/parallel/test-zlib-dictionary-fail.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-zlib-dictionary-fail.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const input = Buffer.from([0x78, 0xBB, 0x04, 0x09, 0x01, 0xA5]);
5353
stream.on('error', common.mustCall(function(err) {
5454
// It's not possible to separate invalid dict and invalid data when using
5555
// the raw format
56-
assert.match(err.message, /invalid/);
56+
assert.match(err.message, /(invalid|Operation-Ending-Supplemental Code is 0x12)/);
5757
}));
5858

5959
stream.write(input);
Collapse file

‎test/parallel/test-zlib-flush-drain-longblock.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-zlib-flush-drain-longblock.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ zipper.write('A'.repeat(17000));
1616
zipper.flush();
1717

1818
let received = 0;
19-
unzipper.on('data', common.mustCall((d) => {
19+
unzipper.on('data', common.mustCallAtLeast((d) => {
2020
received += d.length;
2121
}, 2));
2222

Collapse file

‎test/parallel/test-zlib-from-string.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-zlib-from-string.js
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ const expectedBase64Gzip = 'H4sIAAAAAAAAA11RS05DMQy8yhzg6d2BPSAkJPZu4laWkjiN4' +
5555
'sHnHNzRtagj5AQAA';
5656

5757
zlib.deflate(inputString, common.mustCall((err, buffer) => {
58-
assert.strictEqual(buffer.toString('base64'), expectedBase64Deflate);
58+
zlib.inflate(buffer, common.mustCall((err, inflated) => {
59+
assert.strictEqual(inflated.toString(), inputString);
60+
}));
5961
}));
6062

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

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.