From 73e517b8e5f2df00cbf92a912355796a0f16017c Mon Sep 17 00:00:00 2001 From: Kenvin Davies Date: Wed, 30 Oct 2019 00:16:31 +0800 Subject: [PATCH] test: do not run TSFN tests on NAPI_VERSION < 4 PR-URL: https://github.com/nodejs/node-addon-api/pull/576 Reviewed-By: NickNaso Reviewed-By: Gabriel Schulhof --- test/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/index.js b/test/index.js index 42dc6ba..33889d4 100644 --- a/test/index.js +++ b/test/index.js @@ -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); }