Skip to content

Commit c979a2d

Browse 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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-zlib-params.js

Lines 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)