| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
Since you're already in here refactoring, could you also change the assert.equal() on this line to assert.strictEqual()?
Sorry, something went wrong.
There was a problem hiding this comment.
Updated - I missed that one
Sorry, something went wrong.
|
CI: https://ci.nodejs.org/job/node-test-pull-request/5624/ (although I guess we'll want to re-run it after the assert.equal() -> assert.strictEqual() change happens, but that's OK, might as well find any oddball platform-specific things that might be there sooner than later) |
Sorry, something went wrong.
There was a problem hiding this comment.
Also, does test-timers-uncaught-exception.js still work even if you reduce the delays to 1?
Sorry, something went wrong.
There was a problem hiding this comment.
This will fail because what was actually registered was a function returned from common.mustCall().
I don't think you can have async errors during exit though, so this should be unnecessary I think.
Sorry, something went wrong.
There was a problem hiding this comment.
I removed the whole function.
Sorry, something went wrong.
Change var to const/let. Simplify test-timers-uncaught-exception.
|
@Fishrock123 updated to address comments, PTAL. Test still passes with 1ms timeout. |
Sorry, something went wrong.
There was a problem hiding this comment.
Sorry, something went wrong.
Change var to const/let. Simplify test-timers-uncaught-exception. PR-URL: #10524 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Change var to const/let. Simplify test-timers-uncaught-exception. PR-URL: nodejs#10524 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Change var to const/let. Simplify test-timers-uncaught-exception. PR-URL: nodejs#10524 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Change var to const/let. Simplify test-timers-uncaught-exception. PR-URL: #10524 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Change var to const/let. Simplify test-timers-uncaught-exception. PR-URL: nodejs#10524 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Change var to const/let. Simplify test-timers-uncaught-exception. PR-URL: nodejs#10524 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
|
This does not land cleanly in LTS. Would someone be willing to backport? |
Sorry, something went wrong.
Change var to const/let. Simplify test-timers-uncaught-exception. PR-URL: nodejs#10524 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Change var to const/let. Simplify test-timers-uncaught-exception. Backport-PR-URL: nodejs/node#12401 PR-URL: nodejs/node#10524 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
| Back | FazBrowse Home | New Git URL |
Change var to const/let. Simplify test-timers-uncaught-exception.
Checklist
Affected core subsystem(s)
test
Description of change
Refactored several of the parallel/test-timer-* tests - mainly changing vars to const and adding common.mustCall() where possible. parallel/test-timers-uncaught-exception has been simplified. Any further suggestions for improvement are welcome 😄