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 90d6463
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 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 90d6463

Please sign in to comment.