Skip to content

Commit

Permalink
test: do not run TSFN tests on NAPI_VERSION < 4
Browse files Browse the repository at this point in the history
PR-URL: #576
Reviewed-By: NickNaso <[email protected]>
Reviewed-By: Gabriel Schulhof <[email protected]>
  • Loading branch information
legendecas authored Oct 29, 2019
1 parent bcc1d58 commit bc8fc23
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ if ((process.env.npm_config_NAPI_VERSION !== undefined) &&
if ((process.env.npm_config_NAPI_VERSION !== undefined) &&
(process.env.npm_config_NAPI_VERSION < 4)) {
testModules.splice(testModules.indexOf('threadsafe_function/threadsafe_function_ptr'), 1);
testModules.splice(testModules.indexOf('threadsafe_function/threadsafe_function_unref'), 1);
testModules.splice(testModules.indexOf('threadsafe_function/threadsafe_function'), 1);
}

Expand Down

0 comments on commit bc8fc23

Please sign in to comment.