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: nodejs/node-addon-api#576
Reviewed-By: NickNaso <[email protected]>
Reviewed-By: Gabriel Schulhof <[email protected]>
  • Loading branch information
kevindavies8 committed Oct 29, 2019
1 parent 83d41e0 commit 73e517b
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 73e517b

Please sign in to comment.