Permalink
Browse files

test: throw check in test-zlib-write-after-close

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...
SgiobairOg authored and jasnell committed Feb 21, 2017
1 parent cba1020 commit 817b28b4e4cc35aa6c3e5ad3be37aafc0b539d45
Showing with 1 addition and 3 deletions.
  1. +1 −3 test/parallel/test-zlib-write-after-close.js
@@ -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 817b28b

Please sign in to comment.