Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c979a2d

Browse filesBrowse files
kapouerjasnell
authored andcommitted
test: smaller chunk size for smaller person.jpg
PR-URL: #5813 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rod Vagg <rod@vagg.org>
1 parent 2b60481 commit c979a2d
Copy full SHA for c979a2d

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎test/parallel/test-zlib-params.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-zlib-params.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ var path = require('path');
66
var fs = require('fs');
77

88
const file = fs.readFileSync(path.resolve(common.fixturesDir, 'person.jpg'));
9-
const chunkSize = 24 * 1024;
9+
const chunkSize = 12 * 1024;
1010
const opts = { level: 9, strategy: zlib.Z_DEFAULT_STRATEGY };
1111
const deflater = zlib.createDeflate(opts);
1212

1313
const chunk1 = file.slice(0, chunkSize);
1414
const chunk2 = file.slice(chunkSize);
15-
const blkhdr = Buffer.from([0x00, 0x48, 0x82, 0xb7, 0x7d]);
15+
const blkhdr = Buffer.from([0x00, 0x5a, 0x82, 0xa5, 0x7d]);
1616
const expected = Buffer.concat([blkhdr, chunk2]);
1717
let actual;
1818

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.