Node: flaky node-api/test_callback_scope/test

Created on 2 May 2020  路  3Comments  路  Source: nodejs/node

This fails on my local (and sometimes on my fork) with the log:

=== release test ===
Path: node-api/test_callback_scope/test
--- stderr ---
/home/rexagod/node/test/node-api/test_callback_scope/test.js:7
assert.strictEqual(runInCallbackScope({}, 'test-resource', () => 42), 42);
                   ^

Error: assertion (argc == 4) failed: Wrong number of arguments
    at Object.<anonymous> (/home/rexagod/node/test/node-api/test_callback_scope/test.js:7:20)
    at Module._compile (internal/modules/cjs/loader.js:1176:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1196:10)
    at Module.load (internal/modules/cjs/loader.js:1040:32)
    at Function.Module._load (internal/modules/cjs/loader.js:929:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
    at internal/main/run_main_module.js:17:47
Command: out/Release/node /home/rexagod/node/test/node-api/test_callback_scope/test.js

Distro: Fedora 31
Node v14.1.0

Most helpful comment

This test case has been updated recently. Please make sure make build-node-api-tests run before running n-api related tests. make test should cover this by default.

All 3 comments

I think it's worth noting that #33208 fails every time this does.

This test case has been updated recently. Please make sure make build-node-api-tests run before running n-api related tests. make test should cover this by default.

That did it! Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thecodingdude picture thecodingdude  路  158Comments

addaleax picture addaleax  路  146Comments

jonathanong picture jonathanong  路  91Comments

silverwind picture silverwind  路  113Comments

yury-s picture yury-s  路  89Comments