-
Notifications
You must be signed in to change notification settings - Fork 465
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
Function tests #928
Function tests #928
Conversation
…-addon-api into function-tests
@JoseExposito thanks for working on this. I see in your output:
Do you see that every time? It indicates something is not quite right so wondering if its related to the PR or possibly an existing intermittent issue. |
Hi @mhdawson I don't have permissions to re-run the failed jobs upstream, however, in my fork, they finished successfully: My guess is that it is an intermittent crash on macOS. I'm going to merge main, let's see what happens... |
It worked 🎉 It looks like an intermittent issue, none of the runs on my fork failed: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JoseExposito thanks for adding this test cases. Just some comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I merged this but I found that the tests were failing after having done that with this output on 14.x Running test 'object/finalizer'
(node:1257166) UnhandledPromiseRejectionWarning: AssertionError [ERR_ASSERTION]: function should not have been called
at mustNotCall (/home/midawson/newpull/land/node-addon-api/test/common/index.js:74:12)
(Use node --trace-warnings ... to show where the warning was created)
(node:1257166) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:1257166) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. and this output on 16.x
So I've reverted it. Since it's in a different test it must be some interaction between the tests. |
@JoseExposito could you take a look and then submit and updated PR? |
PR-URL: nodejs/node-addon-api#928 Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: NickNaso <[email protected]>
PR-URL: nodejs/node-addon-api#928 Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: NickNaso <[email protected]>
PR-URL: nodejs/node-addon-api#928 Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: NickNaso <[email protected]>
PR-URL: nodejs/node-addon-api#928 Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: NickNaso <[email protected]>
This PR adds tests for every Function method.
I splitted the changes in commits so the diff is easier to follow.
EDIT 🤔