Skip to content

Commit bc8fc23

Browse files
authored
test: do not run TSFN tests on NAPI_VERSION < 4
PR-URL: #576 Reviewed-By: NickNaso <[email protected]> Reviewed-By: Gabriel Schulhof <[email protected]>
1 parent bcc1d58 commit bc8fc23

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ if ((process.env.npm_config_NAPI_VERSION !== undefined) &&
6969
if ((process.env.npm_config_NAPI_VERSION !== undefined) &&
7070
(process.env.npm_config_NAPI_VERSION < 4)) {
7171
testModules.splice(testModules.indexOf('threadsafe_function/threadsafe_function_ptr'), 1);
72+
testModules.splice(testModules.indexOf('threadsafe_function/threadsafe_function_unref'), 1);
7273
testModules.splice(testModules.indexOf('threadsafe_function/threadsafe_function'), 1);
7374
}
7475

0 commit comments

Comments
 (0)