-
Notifications
You must be signed in to change notification settings - Fork 29.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v6.x backport: test: refactor several parallel/test-timer tests #12401
Conversation
@BethGriggs I took the liberty of updating PR title. |
so it seems like the work from this PR ended up getting wrapped into another backport that has already landed. Thanks for putting the time into this @BethGriggs, fun to run into you in the PR tracker 😄 |
@MylesBorins Is that true? The changes to the first file were just e.g. this diff: -console.error('set first timer');
-setTimeout(function() {
- console.error('first timer');
- timer1++;
- throw new Error('BAM!');
-}, 100);
+setTimeout(common.mustCall(function() {
+ throw new Error(errorMsg);
+}), 1); |
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>
271e226
to
6896e4c
Compare
landed in 9218661 |
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>
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
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
Test
/cc @gibfahn