Skip to content

Commit 3044474

Browse files
committed
[squash] fixup test with apapirovski’s suggestion
1 parent 8543d2b commit 3044474

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/parallel/test-http-timeout-client-warning.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ const server = http.createServer((req, resp) => resp.end());
1414
server.listen(common.mustCall(() => {
1515
http.request(`http://localhost:${server.address().port}`)
1616
.setTimeout(2 ** 40)
17-
.end(() => {
17+
.on('response', common.mustCall(() => {
1818
server.close();
19-
});
19+
}))
20+
.end();
2021
}));

0 commit comments

Comments
 (0)