summaryrefslogtreecommitdiff
path: root/test/parallel/test-zlib-close-in-ondata.js
blob: 44d996311dca134d92cd7a20d9cc03423423303f (plain)
1
2
3
4
5
6
7
8
9
10
'use strict';

const common = require('../common');
const zlib = require('zlib');

const ts = zlib.createGzip();
const buf = Buffer.alloc(1024 * 1024 * 20);

ts.on('data', common.mustCall(() => ts.close()));
ts.end(buf);