Skip to content

Commit

Permalink
test: do not race server.close with timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
mmomtchev committed Jul 29, 2022
1 parent ad07a13 commit 3b3cd1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-http-client-response-timeout.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ server.listen(common.mustCall(() => {
http.get({ port: server.address().port }, common.mustCall((res) => {
res.on('timeout', common.mustCall(() => req.destroy()));
res.setTimeout(1);
server.close();
setTimeout(common.mustCall(() => server.close()), 2);
}));
}));

0 comments on commit 3b3cd1f

Please sign in to comment.