test: remove unnecessary process.exit calls from test files#62020
test: remove unnecessary process.exit calls from test files#62020aduh95 wants to merge 2 commits intonodejs:mainfrom
process.exit calls from test files#62020Conversation
|
Review requested:
|
| } else if (common.isAIX) { | ||
| console.log('1..0 # Skipped: test runner without specifying files fails on AIX'); |
There was a problem hiding this comment.
Looks like this should also be a skip.
| if (common.hasCrypto) { | ||
| console.log('1..0 # Skipped: no crypto'); | ||
| process.exit(0); | ||
| common.skip('no crypto'); | ||
| } |
There was a problem hiding this comment.
@mcollina do you remember the context for this? I can't tell why crypto has any influence on this test, and the logic also appears the wrong way round?
There was a problem hiding this comment.
I've opened #62026 to investigate. It looks like the test runner attempts to open the .so files when building with shared OpenSSL, which would be a bug
There was a problem hiding this comment.
With shared OpenSSL, the OpenSSL libraries need to be on the library path (LD_LIBRARY_PATH on Linux) for the node binary to run.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #62020 +/- ##
==========================================
- Coverage 89.74% 89.73% -0.01%
==========================================
Files 676 676
Lines 206072 206069 -3
Branches 39507 39524 +17
==========================================
- Hits 184936 184923 -13
- Misses 13303 13319 +16
+ Partials 7833 7827 -6 🚀 New features to boost your workflow:
|
We have a bunch of calls that do nothing, this PR removes those to make the tests more readable