Uh oh!
There was an error while loading. Please reload this page.
Function tests - #928
Conversation
mhdawson
commented
Mar 10, 2021
@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... |
JoseExposito
commented
Mar 11, 2021
It worked 🎉 It looks like an intermittent issue, none of the runs on my fork failed: |
NickNaso
left a comment
There was a problem hiding this comment.
@JoseExposito thanks for adding this test cases. Just some comments.
Uh oh!
There was an error while loading. Please reload this page.
mhdawson
commented
Mar 15, 2021
I merged this but I found that the tests were failing after having done that with this output on 14.x Runningtest'object/finalizer'(node:1257166)UnhandledPromiseRejectionWarning: AssertionError[ERR_ASSERTION]: functionshouldnothavebeencalledatmustNotCall(/home/midawson/newpull/land/node-addon-api/test/common/index.js:74:12)(Usenode--trace-warnings...toshowwherethewarningwascreated)(node:1257166)UnhandledPromiseRejectionWarning: Unhandledpromiserejection.Thiserrororiginatedeitherbythrowinginsideofanasyncfunctionwithoutacatchblock,orbyrejectingapromisewhichwasnothandledwith.catch().Toterminatethenodeprocessonunhandledpromiserejection,usetheCLIflag--unhandled-rejections=strict(seehttps://nodejs.org/api/cli.html#cli_unhandled_rejections_mode).(rejectionid: 1)(node:1257166)[DEP0018]DeprecationWarning: Unhandledpromiserejectionsaredeprecated.Inthefuture,promiserejectionsthatarenothandledwillterminatetheNode.jsprocesswithanon-zeroexitcode.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. |
mhdawson
commented
Mar 15, 2021
@JoseExposito could you take a look and then submit and updated PR? |
JoseExposito
commented
Mar 17, 2021
PR-URL: nodejs/node-addon-api#928 Reviewed-By: Michael Dawson <midawson@redhat.com> Reviewed-By: NickNaso <nicoladelgobbo@gmail.com>
PR-URL: nodejs/node-addon-api#928 Reviewed-By: Michael Dawson <midawson@redhat.com> Reviewed-By: NickNaso <nicoladelgobbo@gmail.com>
PR-URL: nodejs/node-addon-api#928 Reviewed-By: Michael Dawson <midawson@redhat.com> Reviewed-By: NickNaso <nicoladelgobbo@gmail.com>
PR-URL: nodejs/node-addon-api#928 Reviewed-By: Michael Dawson <midawson@redhat.com> Reviewed-By: NickNaso <nicoladelgobbo@gmail.com>
This PR adds tests for every Function method.
I splitted the changes in commits so the diff is easier to follow.
EDIT 🤔