Skip to content
Closed
Changes from 1 commit
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
Prev Previous commit
test: smaller chunk size for smaller person.jpg
  • Loading branch information
kapouer committed Mar 20, 2016
commit a9b0c5edf37e5c54c1eb998f8d85b7cf854bb717
4 changes: 2 additions & 2 deletions test/parallel/test-zlib-params.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ var path = require('path');
var fs = require('fs');

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

var chunk1 = file.slice(0, chunkSize),
chunk2 = file.slice(chunkSize),
blkhdr = new Buffer([0x00, 0x48, 0x82, 0xb7, 0x7d]),
blkhdr = new Buffer([0x00, 0x5a, 0x82, 0xa5, 0x7d]),
expected = Buffer.concat([blkhdr, chunk2]),
actual;

Expand Down