Skip to content

Commit

Permalink
[Squash] Fix nits
Browse files Browse the repository at this point in the history
  • Loading branch information
jasnell committed Aug 3, 2017
1 parent df0be87 commit a905f3b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
11 changes: 7 additions & 4 deletions test/parallel/test-zlib-from-gzip-with-trailing-garbage.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,13 @@ assert.throws(
/^Error: unknown compression method$/
);

zlib.gunzip(data, common.expectsError({
code: 'Z_DATA_ERROR',
type: Error,
message: 'unknown compression method'
zlib.gunzip(data, common.mustCall((err, result) => {
common.expectsError({
code: 'Z_DATA_ERROR',
type: Error,
message: 'unknown compression method'
})(err);
assert.strictEqual(result, undefined);
}));

// In this case the trailing junk is too short to be a gzip segment
Expand Down
3 changes: 0 additions & 3 deletions test/parallel/test-zlib-random-byte-pipes.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,6 @@ const gunz = zlib.createGunzip();

inp.pipe(gzip).pipe(gunz).pipe(out);

inp.on('data', common.mustCall(4));
gzip.on('data', common.mustCall(2));
gunz.on('data', common.mustCall());
out.on('data', common.mustCall((c) => {
assert.strictEqual(c, inp._hash, 'hashes should match');
}));

0 comments on commit a905f3b

Please sign in to comment.