Skip to content

Commit

Permalink
[squash] fixup test with apapirovski’s suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
addaleax committed Mar 2, 2018
1 parent 8543d2b commit 3044474
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/parallel/test-http-timeout-client-warning.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ const server = http.createServer((req, resp) => resp.end());
server.listen(common.mustCall(() => {
http.request(`http://localhost:${server.address().port}`)
.setTimeout(2 ** 40)
.end(() => {
.on('response', common.mustCall(() => {
server.close();
});
}))
.end();
}));

0 comments on commit 3044474

Please sign in to comment.