Skip to content
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

[test] Error: Cannot find module './build/Release/addon' #34495

Closed
qballer opened this issue Jul 23, 2020 · 2 comments
Closed

[test] Error: Cannot find module './build/Release/addon' #34495

qballer opened this issue Jul 23, 2020 · 2 comments

Comments

@qballer
Copy link

qballer commented Jul 23, 2020

  • Version: v15.0.0.0-pre
  • Platform: Linux doron-ThinkPad-T480 4.15.0-111-generic io.js TC Meeting 2014-12-10 #112-Ubuntu SMP Thu Jul 9 20:32:34 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
  • Subsystem: test-benchmark-nap (?)

What steps will reproduce the bug?

  • clone project
  • ./configure
  • make -j4
  • make test -j4

How often does it reproduce? Is there a required condition?

Always.

What is the expected behavior?

Tests should pass.

What do you see instead?

=== release test-benchmark-napi ===                                           
Path: benchmark/test-benchmark-napi
/home/doron/code/node/benchmark/napi/function_args/index.js: V8 Binding failed to load
misc/function_call.js Binding failed to load
internal/modules/cjs/loader.js:1082
  throw err;
  ^

Error: Cannot find module './build/Release/addon'
Require stack:
- /home/doron/code/node/benchmark/napi/ref/index.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1079:15)
    at Function.Module._load (internal/modules/cjs/loader.js:925:27)
    at Module.require (internal/modules/cjs/loader.js:1139:19)
    at require (internal/modules/cjs/helpers.js:75:18)
    at Object.<anonymous> (/home/doron/code/node/benchmark/napi/ref/index.js:3:15)
    at Module._compile (internal/modules/cjs/loader.js:1250:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1271:10)
    at Module.load (internal/modules/cjs/loader.js:1099:32)
    at Function.Module._load (internal/modules/cjs/loader.js:964:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/home/doron/code/node/benchmark/napi/ref/index.js' ]
}
assert.js:103
  throw new AssertionError(obj);
  ^

AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:

1 !== 0

    at ChildProcess.<anonymous> (/home/doron/code/node/test/common/benchmark.js:30:12)
    at ChildProcess.emit (events.js:314:20)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12) {
  generatedMessage: true,
  code: 'ERR_ASSERTION',
  actual: 1,
  expected: 0,
  operator: 'strictEqual'
}

Additional information

Tried on a different machine with Ubuntu 20.

@richardlau
Copy link
Member

This should have been fixed by 3caa2e2.

@qballer
Copy link
Author

qballer commented Jul 23, 2020

The issue seems fixed by the latest pull

@qballer qballer closed this as completed Jul 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants