| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
This should be refactored to use common.mustCall instead of Countdown since it's supposed to only run 1 request anyway.
(I don't think the changes here are correct since the countdown never goes to 0.)
Sorry, something went wrong.
|
@apapirovski : Thanks for the feedback. I've updated the PR to include the recommended changes. Kindly review the PR now. |
Sorry, something went wrong.
There was a problem hiding this comment.
common.mustCall should be added to this function.
Sorry, something went wrong.
There was a problem hiding this comment.
We don't need to call on here since listen (line 13) accepts a callback.
Sorry, something went wrong.
There was a problem hiding this comment.
You could just put server.close() after res.resume() and then validate the assert conditions there (lines 37-42). That way we don't need the process.on('exit').
Sorry, something went wrong.
There was a problem hiding this comment.
This can be removed if server.close() is added somewhere as per above.
Sorry, something went wrong.
|
@apapirovski : Thanks for the feedback. I've updated the PR addressing the review comments. Kindly review the PR. Thanks! |
Sorry, something went wrong.
There was a problem hiding this comment.
Can this be just inlined above? The name isn't very descriptive (and could confuse someone in the future) since there's only 1 test, not many.
server.listen(0, () => {...});
Sorry, something went wrong.
There was a problem hiding this comment.
@apapirovski : Thanks for the feedback. I've updated the PR as per the comment and also shortened the commit message. Kindly review the PR now. Thanks !
Sorry, something went wrong.
Sorry, something went wrong.
|
Landing... |
Sorry, something went wrong.
…stCall PR-URL: #17438 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
…stCall PR-URL: #17438 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
…stCall PR-URL: #17438 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
…stCall PR-URL: #17438 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
…stCall PR-URL: #17438 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
| Back | FazBrowse Home | New Git URL |
refactor : test-http-request-dont-override-options to use common.mustCall as per issue #17169
Checklist
Affected core subsystem(s)
test