Skip to content

Commit

Permalink
test: throw check in test-zlib-write-after-close
Browse files Browse the repository at this point in the history
PR-URL: #11482
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Yuta Hiroto <[email protected]>
  • Loading branch information
Jason Wilson authored and MylesBorins committed Mar 9, 2017
1 parent f4bc12d commit f0eee61
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/parallel/test-zlib-write-after-close.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,5 @@ var zlib = require('zlib');
zlib.gzip('hello', common.mustCall(function(err, out) {
var unzip = zlib.createGunzip();
unzip.close(common.mustCall(function() {}));
assert.throws(function() {
unzip.write(out);
});
assert.throws(() => unzip.write(out), /^Error: zlib binding closed$/);
}));

0 comments on commit f0eee61

Please sign in to comment.