Skip to content

Commit

Permalink
fixup: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed Nov 23, 2021
1 parent 4188695 commit 133cc2c
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions test/parallel/test-stream-finished.js
Original file line number Diff line number Diff line change
Expand Up @@ -645,15 +645,18 @@ testClosed((opts) => new Writable({ write() {}, ...opts }));
}

{
const server = http.createServer(common.mustCall(function (req, res) {
fs.createReadStream(__filename).pipe(res)
finished(res, common.mustCall(function (err) {
const server = http.createServer(common.mustCall(function(req, res) {
fs.createReadStream(__filename).pipe(res);
finished(res, common.mustCall(function(err) {
assert.strictEqual(err, undefined);
}))
})).listen(0, function () {
http.request({ method: 'GET', port: this.address().port }, common.mustCall(function (res) {
res.resume()
server.close()
})).end()
})
}));
})).listen(0, function() {
http.request(
{ method: 'GET', port: this.address().port },
common.mustCall(function(res) {
res.resume();
server.close();
})
).end();
});
}

0 comments on commit 133cc2c

Please sign in to comment.