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 <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
  • Loading branch information
Jason Wilson authored and jasnell committed Mar 7, 2017
1 parent 4af3da9 commit e2af074
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 e2af074

Please sign in to comment.