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
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: test/parallel/test-zlib-dictionary-fail.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -53,7 +53,7 @@ const input = Buffer.from([0x78, 0xBB, 0x04, 0x09, 0x01, 0xA5]); |
53 | 53 | stream.on('error', common.mustCall(function(err) { |
54 | 54 | // It's not possible to separate invalid dict and invalid data when using |
55 | 55 | // the raw format |
56 | | - assert.match(err.message, /invalid/); |
| 56 | + assert.match(err.message, /(invalid|Operation-Ending-Supplemental Code is 0x12)/); |
57 | 57 | })); |
58 | 58 |
|
59 | 59 | stream.write(input); |
|
Collapse file
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 number | Diff line number | Diff line change |
|---|
@@ -16,7 +16,7 @@ zipper.write('A'.repeat(17000)); |
16 | 16 | zipper.flush(); |
17 | 17 |
|
18 | 18 | let received = 0; |
19 | | -unzipper.on('data', common.mustCall((d) => { |
| 19 | +unzipper.on('data', common.mustCallAtLeast((d) => { |
20 | 20 | received += d.length; |
21 | 21 | }, 2)); |
22 | 22 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: test/parallel/test-zlib-from-string.js +3-1Lines changed: 3 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -55,7 +55,9 @@ const expectedBase64Gzip = 'H4sIAAAAAAAAA11RS05DMQy8yhzg6d2BPSAkJPZu4laWkjiN4' + |
55 | 55 | 'sHnHNzRtagj5AQAA'; |
56 | 56 |
|
57 | 57 | 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 | + })); |
59 | 61 | })); |
60 | 62 |
|
61 | 63 | zlib.gzip(inputString, common.mustCall((err, buffer) => { |
|