From e8d65aff4386bea2903cdb7424c598c5d8d4d205 Mon Sep 17 00:00:00 2001 From: legendecas Date: Sun, 27 Oct 2019 23:42:09 +0800 Subject: [PATCH] test: do not run TSFN tests on NAPI_VERSION < 4 --- test/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/index.js b/test/index.js index 42dc6ba51..33889d4ae 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); }