Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
squash: remove erroneous check that timeout is not emitted
  • Loading branch information
Trott committed Jul 24, 2017
commit 7f7712e87a66f0aed27c72fceda3d2b904e6b060
2 changes: 1 addition & 1 deletion test/parallel/test-http-set-timeout-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ test(function fastTimeout(cb) {

const server = http.createServer(common.mustCall((req, res) => {
req.on('timeout', common.mustNotCall());
res.end(() => { res.on('timeout', common.mustNotCall()); });
res.end();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happened to res.on('timeout', common.mustNotCall());?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be emitted so common.mustNotCall() was wrong. See #14380 (comment).

connectionHandlerInvoked = true;
invokeCallbackIfDone();
}));
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-https-set-timeout-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ test(function fastTimeout(cb) {
const server = https.createServer(serverOptions, common.mustCall(
(req, res) => {
req.on('timeout', common.mustNotCall());
res.end(() => { res.on('timeout', common.mustNotCall()); });
res.end();
connectionHandlerInvoked = true;
invokeCallbackIfDone();
}
Expand Down