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 addaleax committed Feb 24, 2017
1 parent 89b66dc commit 8fdb6c2
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 @@ const zlib = require('zlib');
zlib.gzip('hello', common.mustCall(function(err, out) {
const 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 8fdb6c2

Please sign in to comment.