Uh oh!
There was an error while loading. Please reload this page.
test_runner: fix ordering of test hooks - #47931
Conversation
nodejs-github-bot
commented
May 9, 2023
Review requested:
|
Uh oh!
There was an error while loading. Please reload this page.
MoLow
commented
May 9, 2023
please amend the commit message from |
For tests with subtests the before hook was being run after the beforeEach hook, which is the opposite to test suites and expectations. Also, a function was being used to close over the after hooks, but at the point it was being run the after hooks were not yet set up. Fixesnodejs#47915
f08f31f to
3ae2015Comparephilnash
commented
May 9, 2023
I've updated the commit message. Thanks for the review. |
nodejs-github-bot
commented
May 10, 2023
nodejs-github-bot
commented
May 10, 2023
nodejs-github-bot
commented
May 10, 2023
philnash
commented
May 10, 2023
I can see that some of the Jenkins jobs are failing. Though I'm not sure why. Is there anything I can do to help this? |
MoLow
commented
May 10, 2023
that is not related to this PR, unfortunately there are some flaky tests |
nodejs-github-bot
commented
May 10, 2023
philnash
commented
May 10, 2023
Ah, fair enough. Thank you! |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
nodejs-github-bot
commented
May 11, 2023
nodejs-github-bot
commented
May 11, 2023
nodejs-github-bot
commented
May 11, 2023
Landed in 24615bd |
MoLow
commented
May 11, 2023
Thanks for the contribution @philnash 🎉 |
philnash
commented
May 11, 2023
Thanks for the help getting this in @MoLow! |
For tests with subtests the before hook was being run after the beforeEach hook, which is the opposite to test suites and expectations. Also, a function was being used to close over the after hooks, but at the point it was being run the after hooks were not yet set up. Fixes#47915 PR-URL: #47931 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
For tests with subtests the before hook was being run after the beforeEach hook, which is the opposite to test suites and expectations. Also, a function was being used to close over the after hooks, but at the point it was being run the after hooks were not yet set up. Fixes#47915 PR-URL: #47931 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
For tests with subtests the before hook was being run after the beforeEach hook, which is the opposite to test suites and expectations. Also, a function was being used to close over the after hooks, but at the point it was being run the after hooks were not yet set up. Fixesnodejs#47915 PR-URL: nodejs#47931 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
For tests with subtests the before hook was being run after the beforeEach hook, which is the opposite to test suites and expectations.
Also, a function was being used to close over the after hooks, but at the point it was being run the after hooks were not yet set up.
Fixes#47915